Iterating over all installed kernel images in update-initramfs example hook.

This commit is contained in:
Daniel Baumann 2008-12-11 19:25:14 +01:00
parent ae059e0556
commit 501c186964
1 changed files with 6 additions and 1 deletions

View File

@ -7,4 +7,9 @@
# Note: You only want to use this hook if you have modified any initramfs-script
# during the build and need to refresh the initrd.img for that purpose.
update-initramfs -k all -t -u
for KERNEL in /boot/vmlinuz-*
do
VERSION="$(basename ${KERNEL} | sed -e 's|vmlinuz-||')"
update-initramfs -k ${VERSION} -t -u
done