[SCM] Debian Live build scripts branch, master, updated. 1.0.1-4-2-g1359e00

Daniel Baumann daniel at debian.org
Thu Dec 11 18:29:34 UTC 2008


The following commit has been merged in the master branch:
commit 1359e0081059775a8196568095dd87579e3aa777
Author: Daniel Baumann <daniel at debian.org>
Date:   Thu Dec 11 19:25:14 2008 +0100

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

diff --git a/examples/hooks/update-initramfs.sh b/examples/hooks/update-initramfs.sh
index 69d3263..5179f77 100755
--- a/examples/hooks/update-initramfs.sh
+++ b/examples/hooks/update-initramfs.sh
@@ -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

-- 
Debian Live build scripts



More information about the debian-live-changes mailing list