From: Peter Palfrader Date: Wed, 25 Aug 2010 19:41:27 +0000 (+0200) Subject: maybe a fix X-Git-Url: https://git.adam-barratt.org.uk/?p=mirror%2Fdsa-wiki.git;a=commitdiff_plain;h=57a7a03ec9f494f0590f441904305c313bb4d7c3 maybe a fix --- diff --git a/input/howto/install-kvm.creole b/input/howto/install-kvm.creole index 5c32e5a..4e7331f 100644 --- a/input/howto/install-kvm.creole +++ b/input/howto/install-kvm.creole @@ -126,16 +126,12 @@ EOF 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 && @@ -145,6 +141,8 @@ EOF 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 &&