Commit 1a33336ab2e639a902d890052ffbd275490027f5

Authored by Silvan Calarco
1 parent 144d097de0
Exists in master

installer.sh: fix for new bug constisting in always checking for bad blocks

Showing 1 changed file with 3 additions and 3 deletions Side-by-side Diff

installer/installer.sh
... ... @@ -132,7 +132,7 @@
132 132  
133 133 case "$INSTALL_FSTYPE" in
134 134 ext2|ext3|ext4|jfs|nilfs2)
135   - [ "$INSTALL_BADBLOCKS" ] && FORMAT_APPEND="-c"
  135 + [ "$INSTALL_BADBLOCKS" = "1" ] && FORMAT_APPEND="-c"
136 136 [ "$INSTALL_HOSTNAME" ] && \
137 137 FORMAT_APPEND="$FORMAT_APPEND -L $INSTALL_HOSTNAME"
138 138 ;;
... ... @@ -162,7 +162,7 @@
162 162 FORMAT_HOME_CMD="/sbin/mkfs.$INSTALL_HOME_FSTYPE"
163 163 case "$INSTALL_HOME_FSTYPE" in
164 164 ext2|ext3|ext4|jfs|nilfs2)
165   - [ "$INSTALL_HOME_BADBLOCKS" ] && FORMAT_HOME_APPEND="-c"
  165 + [ "$INSTALL_HOME_BADBLOCKS" = "1" ] && FORMAT_HOME_APPEND="-c"
166 166 FORMAT_HOME_APPEND="$FORMAT_HOME_APPEND -L home"
167 167 ;;
168 168 btrfs|xfs|reiser4)
... ... @@ -188,7 +188,7 @@
188 188 FORMAT_BOOT_CMD="/sbin/mkfs.$INSTALL_BOOT_FSTYPE"
189 189 case "$INSTALL_BOOT_FSTYPE" in
190 190 ext2|ext3|ext4|jfs|nilfs2)
191   - [ "$INSTALL_BOOT_BADBLOCKS" ] && FORMAT_BOOT_APPEND="-c"
  191 + [ "$INSTALL_BOOT_BADBLOCKS" = "1" ] && FORMAT_BOOT_APPEND="-c"
192 192 FORMAT_BOOT_APPEND="$FORMAT_BOOT_APPEND -L boot"
193 193 ;;
194 194 btrfs|xfs|reiser4)