X-Git-Url: https://git.grml.org/?p=grml-debootstrap.git;a=blobdiff_plain;f=grml-debootstrap;h=0bbe4098cdcd7e4d401ec93ce5d0f8ecea5f84dd;hp=8d6c59a0e852e38e6fb2ac2acf54ce4f108c20ef;hb=89e2ad98ad3b1362bb43d7b1634780c1c9db372f;hpb=8cedc171928bacf677b7bca3ae153efbf96fdb84 diff --git a/grml-debootstrap b/grml-debootstrap index 8d6c59a..0bbe409 100644 --- a/grml-debootstrap +++ b/grml-debootstrap @@ -4,7 +4,7 @@ # Authors: grml-team (grml.org), (c) Michael Prokop # Bug-Reports: see http://grml.org/bugs/ # License: This file is licensed under the GPL v2. -# Latest change: Fre Nov 03 13:50:30 CET 2006 [mika] +# Latest change: Fre Nov 03 15:34:02 CET 2006 [mika] ################################################################################ # http://www.debian.org/releases/stable/i386/apcs04.html.en @@ -15,8 +15,6 @@ set -e # exit on any error check4progs debootstrap || exit 1 -set -u # make sure we don't have empty variables - if [ -r /etc/debootstrap/config ] ; then . /etc/debootstrap/config else @@ -29,10 +27,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