summaryrefslogtreecommitdiff
path: root/examples/hooks/update-initramfs.sh
diff options
context:
space:
mode:
Diffstat (limited to 'examples/hooks/update-initramfs.sh')
-rwxr-xr-xexamples/hooks/update-initramfs.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/examples/hooks/update-initramfs.sh b/examples/hooks/update-initramfs.sh
new file mode 100755
index 000000000..e220418f5
--- /dev/null
+++ b/examples/hooks/update-initramfs.sh
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+# This is a hook for live-helper(7) to install aufs drivers
+# To enable it, copy this hook into your config/chroot_local-hooks directory.
+#
+# 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