From: Michael Prokop Date: Fri, 3 Nov 2006 14:25:12 +0000 (+0100) Subject: support tune2fs X-Git-Tag: 0.1~7 X-Git-Url: https://git.grml.org/?p=grml-debootstrap.git;a=commitdiff_plain;h=0b0e8f0a1a88a1e2e15b3f15c4aa2bc3294296c1 support tune2fs --- diff --git a/chroot-script b/chroot-script index 1ce5ac7..fc35e95 100644 --- a/chroot-script +++ b/chroot-script @@ -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 15:14:28 CET 2006 [mika] +# Latest change: Fre Nov 03 15:24:53 CET 2006 [mika] ################################################################################ set -e # exit on any error @@ -17,6 +17,10 @@ if [ -n "$CHROOTMIRROR" ] ; then echo "$CHROOTMIRROR" > /etc/apt/sources.list fi +#if ! [ -n /etc/kernel-img.conf ] ; then +# echo "do_initrd = Yes" > /etc/kernel-img.conf +#fi + # install additional packages if [ "$PACKAGES" = 'yes' ] ; then if ! [ -r /etc/debootstrap/packages ] ; then diff --git a/config b/config index 8071706..db22e6d 100644 --- a/config +++ b/config @@ -3,7 +3,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 15:18:38 CET 2006 [mika] +# Latest change: Fre Nov 03 15:23:37 CET 2006 [mika] ################################################################################ ################################################################################ @@ -48,9 +48,14 @@ RELEASE='etch' HOSTNAME='grml' # executable which should be run on $TARGET +# unset it if you do not want to use it MKFS='mkfs.ext3' -# check filesyste after installation? +# deactivate automatic filesystem check on $TARGET? +# unset it if you do not want to use it +TUNE2FS='tune2fs -c0 -i0' + +# check filesystem when chroot stuff finished? FSCK='yes' # which tool should be used for fsck? if unset the tool will be guesst based on $MKFS 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