Do not set grub post inst/rm hooks until we have the first kernel there
authorPeter Palfrader <peter@palfrader.org>
Sun, 5 Apr 2009 15:03:00 +0000 (17:03 +0200)
committerPeter Palfrader <peter@palfrader.org>
Sun, 5 Apr 2009 15:03:00 +0000 (17:03 +0200)
input/howto/install-kvm.creole

index 5dcfbb4..7558a6c 100644 (file)
@@ -127,10 +127,12 @@ EOF
 do_symlinks = yes
 link_in_boot = yes
 do_initrd = yes
+EOF
+ chroot . apt-get install linux-image-2.6-amd64 &&
+ cat >> etc/kernel-img.conf << EOF
 postinst_hook = /usr/sbin/update-grub
 postrm_hook   = /usr/sbin/update-grub
 EOF
- chroot . apt-get install linux-image-2.6-amd64
 
 }}}