installer.sh: fix for new bug constisting in always checking for bad blocks
This commit is contained in:
parent
144d097de0
commit
1a33336ab2
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user