diff --git a/installer/installer.sh b/installer/installer.sh index 0ed3180..e431727 100755 --- a/installer/installer.sh +++ b/installer/installer.sh @@ -132,7 +132,7 @@ FORMAT_CMD="/sbin/mkfs.$INSTALL_FSTYPE" case "$INSTALL_FSTYPE" in ext2|ext3|ext4|jfs|nilfs2) - [ "$INSTALL_BADBLOCKS" ] && FORMAT_APPEND="-c" + [ "$INSTALL_BADBLOCKS" = "1" ] && FORMAT_APPEND="-c" [ "$INSTALL_HOSTNAME" ] && \ FORMAT_APPEND="$FORMAT_APPEND -L $INSTALL_HOSTNAME" ;; @@ -162,7 +162,7 @@ if [ "$INSTALL_HOME_DEVICE" ]; then FORMAT_HOME_CMD="/sbin/mkfs.$INSTALL_HOME_FSTYPE" case "$INSTALL_HOME_FSTYPE" in ext2|ext3|ext4|jfs|nilfs2) - [ "$INSTALL_HOME_BADBLOCKS" ] && FORMAT_HOME_APPEND="-c" + [ "$INSTALL_HOME_BADBLOCKS" = "1" ] && FORMAT_HOME_APPEND="-c" FORMAT_HOME_APPEND="$FORMAT_HOME_APPEND -L home" ;; btrfs|xfs|reiser4) @@ -188,7 +188,7 @@ if [ "$INSTALL_BOOT_DEVICE" ]; then FORMAT_BOOT_CMD="/sbin/mkfs.$INSTALL_BOOT_FSTYPE" case "$INSTALL_BOOT_FSTYPE" in ext2|ext3|ext4|jfs|nilfs2) - [ "$INSTALL_BOOT_BADBLOCKS" ] && FORMAT_BOOT_APPEND="-c" + [ "$INSTALL_BOOT_BADBLOCKS" = "1" ] && FORMAT_BOOT_APPEND="-c" FORMAT_BOOT_APPEND="$FORMAT_BOOT_APPEND -L boot" ;; btrfs|xfs|reiser4)