From 22face28f52beee34274f28ea846e55facda02a3 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Sat, 4 Apr 2009 11:37:23 +0200 Subject: [PATCH] Also set kernel image postinst and postrm hook --- input/howto/install-kvm.creole | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 }}} -- 2.20.1