support tune2fs
authorMichael Prokop <mika@grml.org>
Fri, 3 Nov 2006 14:25:12 +0000 (15:25 +0100)
committerMichael Prokop <mika@grml.org>
Fri, 3 Nov 2006 14:25:12 +0000 (15:25 +0100)
chroot-script
config
grml-debootstrap

index 1ce5ac7..fc35e95 100644 (file)
@@ -4,7 +4,7 @@
 # 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
@@ -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 (file)
--- a/config
+++ b/config
@@ -3,7 +3,7 @@
 # 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]
 ################################################################################
 
 ################################################################################
@@ -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
index 8d6c59a..6b5d288 100644 (file)
@@ -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