# Authors: grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
# 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
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
# Authors: grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
# 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]
################################################################################
################################################################################
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
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