X-Git-Url: https://git.grml.org/?p=grml-debootstrap.git;a=blobdiff_plain;f=grml-debootstrap;h=8d6c59a0e852e38e6fb2ac2acf54ce4f108c20ef;hp=3b403722bb6f40968f79d1301b519ae56419d5f7;hb=8cedc171928bacf677b7bca3ae153efbf96fdb84;hpb=48aff5437a0bc1e9fe2c769aa373530c689d2139 diff --git a/grml-debootstrap b/grml-debootstrap index 3b40372..8d6c59a 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 11:24:15 CET 2006 [mika] +# Latest change: Fre Nov 03 13:50:30 CET 2006 [mika] ################################################################################ # http://www.debian.org/releases/stable/i386/apcs04.html.en @@ -63,7 +63,7 @@ einfo "Preparing chroot system" [ -d /etc/debootstrap/share ] && cp -a /etc/debootstrap/share/* $MNTPOINT/share/ [ -d /etc/debootstrap/usr ] && cp -a /etc/debootstrap/usr/* $MNTPOINT/usr/ [ -d /etc/debootstrap/var ] && cp -a /etc/debootstrap/var/* $MNTPOINT/var/ -eend $? +eend 0 einfo "Executing chroot-script now" chroot $MNTPOINT /bin/chroot-script @@ -73,6 +73,13 @@ einfo "Unmount $MNTPOINT" umount $MNTPOINT eend $? +if [ "$FSCK" = 'yes' ] ; then + [ -n "$FSCKTOOL" ] || FSCKTOOL="fsck.${MKFS#mkfs.}" + einfo "Checking filesystem on $TARGET using $FSCKTOOL" + $FSCKTOOL $TARGET + eend $? +fi + einfo "Finished execution of $0 - enjoy your Debian system." ; eend 0 ## END OF FILE #################################################################