EOF
fi
+# create default devices
+if ! [ -r /dev/hda20 ] ; then
+ echo "Creating generic devices in /dev - this might take a while..."
+ cd /dev && MAKEDEV generic
+fi
+
# install additional packages
if [ "$PACKAGES" = 'yes' ] ; then
if ! [ -r /etc/debootstrap/packages ] ; then
fi
fi
+# sarge specific stuff
+if [ "$RELEASE" = 'sarge' ] ; then
+ sed -i "s/ROOT=probe/ROOT=$TARGET" /etc/mkinitrd/mkinitrd.conf
+fi
+
if [ -n "$KERNEL" ] ; then
apt-get update
if [ "$RELEASE" = 'sarge' ] ; then
echo "$HOSTNAME" > /etc/hostname
fi
-# create default devices
-if ! [ -r /dev/hda20 ] ; then
- echo "Creating generic devices in /dev - this might take a while..."
- cd /dev && MAKEDEV generic
-fi
-
# assume the first available kernel as our main kernel
KERNELIMG=$(ls -1 /boot/vmlinuz-* | head -1)
KERNELVER=${KERNELIMG#/boot/vmlinuz-}