X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=chroot-script;h=2f8b964de2f3f2d866c99439fee94831c1d81960;hb=8049bba1690cb33dd986f2836f92d578d17e56bd;hp=973165991ede1c2e740ae000bd0e6a0270111faa;hpb=fb128e44f008f163f9404e1b5dbe450b2efbb035;p=grml-debootstrap.git diff --git a/chroot-script b/chroot-script index 9731659..2f8b964 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 21:45:09 CET 2006 [mika] +# Latest change: Fre Nov 03 21:57:11 CET 2006 [mika] ################################################################################ set -e # exit on any error @@ -17,9 +17,15 @@ 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 +if ! [ -n /etc/kernel-img.conf ] ; then + echo "Setting up /etc/kernel-img.conf" + cat > /etc/kernel-img.conf << EOF +# Kernel Image management overrides +# See kernel-img.conf(5) for details +do_initrd = Yes +do_symlinks = Yes +EOF +fi # install additional packages if [ "$PACKAGES" = 'yes' ] ; then @@ -87,6 +93,12 @@ if grep -q UNCONFIGURED /etc/fstab ; then createfstab fi +# set up hostname +if [ -n "$HOSTNAME" ] ; then + echo "Setting hostname to ${HOSTNAME}." + echo "$HOSTNAME" > /etc/hostname +fi + # create default devices if ! [ -r /dev/hda20 ] ; then echo "Creating generic devices in /dev - this might take a while..."