From 6f0b64634e739a648ab9e9cd17e59bbb6d409123 Mon Sep 17 00:00:00 2001 From: maximilian attems Date: Sat, 7 Aug 2010 00:36:41 +0200 Subject: update-initramfs: run_bootloader() invoke Initramfs hooks Conform to policy http://kernel-handbook.alioth.debian.org/ch-update-hooks.html#s-initramfs-hooks We check that the dir exists to no longer invoke boot loader on our own for squeeze, but work on partial upgrades from lenny. The bootloader invocations can be removed postsqueeze. Signed-off-by: maximilian attems --- update-initramfs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/update-initramfs b/update-initramfs index 747fc0b..f2439c8 100755 --- a/update-initramfs +++ b/update-initramfs @@ -190,6 +190,14 @@ run_lilo() # Invoke bootloader run_bootloader() { + # invoke policy conformant bootloader hooks + if [ -d /etc/initramfs/post-update.d/ ]; then + run-parts --arg=${version} --arg=${initramfs} \ + /etc/initramfs/post-update.d/ + return 0 + fi + + # FIXME: to be removed postsqueeze release # if both lilo and grub around, figure out if lilo needs to be run if ( command -v update-grub >/dev/null 2>&1 \ || [ -e /boot/grub/menu.lst ] || [ -e /boot/grub/grub.cfg ] ) \ -- cgit v1.2.3