2008-09-11 10:28:03 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2010-09-02 12:45:03 +00:00
|
|
|
# This is a hook for live-build(7) to rebuild the initramfs image.
|
2008-12-02 15:42:03 -01:00
|
|
|
# To enable it, copy or symlink this hook into your config/chroot_local-hooks
|
|
|
|
# directory.
|
2008-09-11 10:28:03 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2008-12-11 17:25:14 -01:00
|
|
|
for KERNEL in /boot/vmlinuz-*
|
|
|
|
do
|
|
|
|
VERSION="$(basename ${KERNEL} | sed -e 's|vmlinuz-||')"
|
|
|
|
|
|
|
|
update-initramfs -k ${VERSION} -t -u
|
|
|
|
done
|