summaryrefslogtreecommitdiff
path: root/data/live-build-config/hooks/17-gen_initramfs.chroot
diff options
context:
space:
mode:
Diffstat (limited to 'data/live-build-config/hooks/17-gen_initramfs.chroot')
-rwxr-xr-xdata/live-build-config/hooks/17-gen_initramfs.chroot4
1 files changed, 4 insertions, 0 deletions
diff --git a/data/live-build-config/hooks/17-gen_initramfs.chroot b/data/live-build-config/hooks/17-gen_initramfs.chroot
new file mode 100755
index 0000000..aced728
--- /dev/null
+++ b/data/live-build-config/hooks/17-gen_initramfs.chroot
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+echo I: Create initramfs if it does not exist.
+update-initramfs -c -k `ls /boot | grep vmlinuz- | sed 's/vmlinuz-//g'`