summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2008-09-11 12:28:03 +0200
committerDaniel Baumann <daniel@debian.org>2011-03-09 19:03:42 +0100
commit518fbfb68f9033d17f1dd06abf989f8bcc252990 (patch)
tree95ca6ab416b9bd3b5f08ac5bc8060987b0aa5799 /examples
parente22c2da3caf4e8b8b015fcabe15ce62d6993284e (diff)
downloadvyos-live-build-518fbfb68f9033d17f1dd06abf989f8bcc252990.tar.gz
vyos-live-build-518fbfb68f9033d17f1dd06abf989f8bcc252990.zip
Adding example hook to update initramfs.
Diffstat (limited to 'examples')
-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