summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Prokop <mika@debian.org>2010-08-07 09:35:56 -0400
committerMichael Prokop <mika@debian.org>2010-08-07 09:35:56 -0400
commit35ccba5a09de628dcf0691833bae150de5484141 (patch)
tree51d89f0217a405561dba79e99c92e599e23610cb
parenta0c314053b1818a370e6a6aca21dd2594e75ca31 (diff)
parent6f0b64634e739a648ab9e9cd17e59bbb6d409123 (diff)
downloadinitramfs-tools-35ccba5a09de628dcf0691833bae150de5484141.tar.gz
initramfs-tools-35ccba5a09de628dcf0691833bae150de5484141.zip
Merge branch 'maks/bootloader'
-rwxr-xr-xupdate-initramfs8
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 ] ) \