cat > etc/kernel-img.conf << EOF &&
do_symlinks = no
do_initrd = yes
-EOF
- # install a kernel image
- chroot . apt-get install linux-image-2.6-amd64 &&
- cat >> etc/kernel-img.conf << EOF &&
-postinst_hook = update-grub
-postrm_hook = update-grub
EOF
if [ "$use_boot" != "n" ] ; then
cp -av $dev_boot $dev_boot""1 dev/ &&
chroot . grub-install --modules=part_msdos /dev/`basename $dev_boot` &&
+ # install a kernel image
+ chroot . apt-get install linux-image-2.6-amd64 &&
sed -i -e 's/^#GRUB_TERMINAL=console/GRUB_TERMINAL=console/' etc/default/grub &&
echo "(hd0) /dev/`basename $dev_boot`" > boot/grub/device.map &&
chroot . update-grub &&
echo && echo && echo && echo "Hardly tested, expect this to fail." && echo && echo && echo &&
echo "(hd0) /dev/`basename $dev_root`" > boot/grub/device.map &&
chroot . grub-install /dev/"`basename $dev_root`" &&
+ # install a kernel image
+ chroot . apt-get install linux-image-2.6-amd64 &&
sed -i -e 's/^#GRUB_TERMINAL=console/GRUB_TERMINAL=console/' etc/default/grub &&
chroot . update-grub
fi &&