Iterating over all installed kernel images in update-initramfs example hook.
This commit is contained in:
parent
ae059e0556
commit
501c186964
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue