[Lunar-commits] r15067 - lunar-iso/trunk/lunar-install/sbin
Auke Kok
sofar at lunar-linux.org
Thu May 26 11:12:49 UTC 2005
Author: sofar
Date: 2005-05-26 11:12:48 +0000 (Thu, 26 May 2005)
New Revision: 15067
Modified:
lunar-iso/trunk/lunar-install/sbin/lunar-install
Log:
mkfs.xfs requires a -f in case you are re-formatting an xfs filesystem.
Modified: lunar-iso/trunk/lunar-install/sbin/lunar-install
===================================================================
--- lunar-iso/trunk/lunar-install/sbin/lunar-install 2005-05-26 10:32:15 UTC (rev 15066)
+++ lunar-iso/trunk/lunar-install/sbin/lunar-install 2005-05-26 11:12:48 UTC (rev 15067)
@@ -399,6 +399,11 @@
MNT_PNT=${MNT_PNT%%/}
fi
FSCK_PASS=$(determine_fsck_pass $FSYS $MNTPNT) &&
+ if [ "$FSYS" == "xfs" ]; then
+ FORCE="-f"
+ else
+ unset FORCE
+ fi
PARTITIONS=(${PARTITIONS[@]} "$PART:$MNTPNT:$FSYS:$MNT_OPTS:$FSCK_PASS:$CHECK:$FORCE:$FORMAT" )
(( NUM_PARTITIONS++ ))
@@ -549,7 +554,7 @@
fi
# create the filesystems if needed for every partition
elif [ "$FORMAT" == "yes" ]; then
- if ! mkfs.$FSYS /dev/discs/$PART $CHECK ; then
+ if ! mkfs.$FSYS $FORCE /dev/discs/$PART $CHECK ; then
sleep 3
$DIALOG --msgbox "Problem creating filesystem on /dev/discs/$PART. Installation will continue." 8 50
fi
More information about the Lunar-commits
mailing list