diff options
author | maximilian attems <maks@debian.org> | 2010-08-07 00:36:41 +0200 |
---|---|---|
committer | maximilian attems <maks@debian.org> | 2010-08-07 00:47:44 +0200 |
commit | 6f0b64634e739a648ab9e9cd17e59bbb6d409123 (patch) | |
tree | 980344c16152c0d4da8dac7340fafc77c685eb31 | |
parent | a4e1a9ea7321799da65a11bb96413d66b7cb07eb (diff) | |
download | initramfs-tools-6f0b64634e739a648ab9e9cd17e59bbb6d409123.tar.gz initramfs-tools-6f0b64634e739a648ab9e9cd17e59bbb6d409123.zip |
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 <maks@debian.org>
-rwxr-xr-x | update-initramfs | 8 |
1 files changed, 8 insertions, 0 deletions
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 ] ) \ |