Do not set grub post inst/rm hooks until we have the first kernel there
[mirror/dsa-wiki.git] / 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
 
 }}}