From: Peter Palfrader Date: Sat, 4 Apr 2009 09:37:23 +0000 (+0200) Subject: Also set kernel image postinst and postrm hook X-Git-Url: https://wiki.adam-barratt.org.uk/gitweb/?a=commitdiff_plain;h=22face28f52beee34274f28ea846e55facda02a3;p=mirror%2Fdsa-wiki.git Also set kernel image postinst and postrm hook --- diff --git a/input/howto/install-kvm.creole b/input/howto/install-kvm.creole index b20b8e0..c7f0174 100644 --- a/input/howto/install-kvm.creole +++ b/input/howto/install-kvm.creole @@ -123,7 +123,13 @@ setup (hd0) quit EOF # install a kernel image - echo -e "do_symlinks = yes\nlink_in_boot = yes\ndo_initrd = yes" > etc/kernel-img.conf && + cat > etc/kernel-img.conf << EOF && +do_symlinks = yes +link_in_boot = yes +do_initrd = yes +postinst_hook = /usr/sbin/update-grub +postrm_hook = /usr/sbin/update-grub +EOF chroot . apt-get install linux-image-2.6-amd64 }}}