From 9c680504e3ac2d17d8cbfb730987e08111f1a04d Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sun, 25 Jan 2015 20:13:45 +0100 Subject: [PATCH] installer.sh: btrfs and xfs want -f to format on an existing filesystem --- installer/installer.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/installer/installer.sh b/installer/installer.sh index eb36d40..0ed3180 100755 --- a/installer/installer.sh +++ b/installer/installer.sh @@ -138,6 +138,7 @@ case "$INSTALL_FSTYPE" in ;; btrfs|xfs|reiser4) # FIXME: bad blocks check option missing? + FORMAT_APPEND="$FORMAT_APPEND -f" [ "$INSTALL_HOSTNAME" ] && \ FORMAT_APPEND="$FORMAT_APPEND -L $INSTALL_HOSTNAME" ;; @@ -166,7 +167,7 @@ if [ "$INSTALL_HOME_DEVICE" ]; then ;; btrfs|xfs|reiser4) # FIXME: bad blocks check option missing? - FORMAT_HOME_APPEND="$FORMAT_HOME_APPEND -L home" + FORMAT_HOME_APPEND="$FORMAT_HOME_APPEND -f -L home" ;; reiserfs) # FIXME: bad blocks check option missing? @@ -192,7 +193,7 @@ if [ "$INSTALL_BOOT_DEVICE" ]; then ;; btrfs|xfs|reiser4) # FIXME: bad blocks check option missing? - FORMAT_BOOT_APPEND="$FORMAT_BOOT_APPEND -L boot" + FORMAT_BOOT_APPEND="$FORMAT_BOOT_APPEND -f -L boot" ;; reiserfs) # FIXME: bad blocks check option missing?