# 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 21:45:09 CET 2006 [mika]
+# Latest change: Fre Nov 03 21:57:11 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
+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
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..."
grml-debootstrap (0.2) unstable; urgency=low
* Add 'debootstrap | cdebootstrap' to depends.
- * Added support for cdebootstrap.
+ * Added support for:
+ - cdebootstrap
+ - setting hostname via /etc/hostname
+ - /etc/kernel-img.conf
+ * Added ssh to default package list.
-- Michael Prokop <mika@grml.org> Fri, 3 Nov 2006 19:05:19 +0100
locales console-data
-vim most zsh screen less initrd-tools file grub usbutils pciutils bzip2 sysfsutils dhcp3-client resolvconf strace lsof w3m
-linux-headers-2.6-686 linux-image-2.6-686
+linux-headers-2.6-686 linux-image-2.6-686 initrd-tools grub
+bzip2 dhcp3-client file less lsof most pciutils resolvconf screen ssh strace sysfsutils usbutils vim w3m zsh