diff --git a/examples/hooks/update-initramfs.sh b/examples/hooks/update-initramfs.sh
index 69d326318..5179f77e9 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