installer.sh: btrfs and xfs want -f to format on an existing filesystem

This commit is contained in:
Silvan Calarco 2015-01-25 20:13:45 +01:00
parent f6e48799d4
commit 9c680504e3

View File

@ -138,6 +138,7 @@ case "$INSTALL_FSTYPE" in
;; ;;
btrfs|xfs|reiser4) btrfs|xfs|reiser4)
# FIXME: bad blocks check option missing? # FIXME: bad blocks check option missing?
FORMAT_APPEND="$FORMAT_APPEND -f"
[ "$INSTALL_HOSTNAME" ] && \ [ "$INSTALL_HOSTNAME" ] && \
FORMAT_APPEND="$FORMAT_APPEND -L $INSTALL_HOSTNAME" FORMAT_APPEND="$FORMAT_APPEND -L $INSTALL_HOSTNAME"
;; ;;
@ -166,7 +167,7 @@ if [ "$INSTALL_HOME_DEVICE" ]; then
;; ;;
btrfs|xfs|reiser4) btrfs|xfs|reiser4)
# FIXME: bad blocks check option missing? # FIXME: bad blocks check option missing?
FORMAT_HOME_APPEND="$FORMAT_HOME_APPEND -L home" FORMAT_HOME_APPEND="$FORMAT_HOME_APPEND -f -L home"
;; ;;
reiserfs) reiserfs)
# FIXME: bad blocks check option missing? # FIXME: bad blocks check option missing?
@ -192,7 +193,7 @@ if [ "$INSTALL_BOOT_DEVICE" ]; then
;; ;;
btrfs|xfs|reiser4) btrfs|xfs|reiser4)
# FIXME: bad blocks check option missing? # FIXME: bad blocks check option missing?
FORMAT_BOOT_APPEND="$FORMAT_BOOT_APPEND -L boot" FORMAT_BOOT_APPEND="$FORMAT_BOOT_APPEND -f -L boot"
;; ;;
reiserfs) reiserfs)
# FIXME: bad blocks check option missing? # FIXME: bad blocks check option missing?