X-Git-Url: https://git.camperquake.de/gitweb.cgi?a=blobdiff_plain;f=scripts%2Fcommon.sh.in;h=0e792dbdc1d9d5872c0c4ae824355ad2e14cdb2d;hb=d75d6f294e0e011e53913803db70f8096f5fd630;hp=71a6b18a06f7401cefc2a57353a4253e66a4e63b;hpb=93648f314c258897a0fa72b0d0b164e1937a5b63;p=zfs.git diff --git a/scripts/common.sh.in b/scripts/common.sh.in index 71a6b18..0e792db 100644 --- a/scripts/common.sh.in +++ b/scripts/common.sh.in @@ -342,7 +342,9 @@ format() { local DEVICE=$1 local FSTYPE=$2 - /sbin/mkfs.${FSTYPE} -q ${DEVICE} || return 1 + # Force 4K blocksize, else mkfs.ext2 tries to use 8K, which + # won't mount + /sbin/mkfs.${FSTYPE} -b 4096 -F -q ${DEVICE} || return 1 return 0 }