X-Git-Url: https://git.grml.org/?p=grml-debootstrap.git;a=blobdiff_plain;f=grml-debootstrap;h=6b5d28887db0cb958331c6fcab919eb5f46bef52;hp=8d6c59a0e852e38e6fb2ac2acf54ce4f108c20ef;hb=0b0e8f0a1a88a1e2e15b3f15c4aa2bc3294296c1;hpb=8cedc171928bacf677b7bca3ae153efbf96fdb84 diff --git a/grml-debootstrap b/grml-debootstrap index 8d6c59a..6b5d288 100644 --- a/grml-debootstrap +++ b/grml-debootstrap @@ -29,10 +29,17 @@ if [ -z "$TARGET" ] ; then exit 1 fi -# make an ext3 filesystem on /dev/sda1 -einfo "Running $MKFS on $TARGET" -$MKFS $TARGET -eend $? +if [ -n "$MKFS" ] ; then + einfo "Running $MKFS on $TARGET" + $MKFS $TARGET + eend $? +fi + +if [ -n "$TUNE2FS" ] ; then + einfo "Disabling automatic filesystem check on $TARGET via tune2fs" + TUNE2FS $TARGET + eend $? +fi # now mount the new partition if grep -q $TARGET /proc/mounts ; then