summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2012-07-19 03:26:46 +0200
committerDaniel Baumann <daniel@debian.org>2012-07-19 03:32:00 +0200
commitd78619d404556a457c09563f78d19f0b00eb1ee5 (patch)
tree86862a3750359acdf42ec09d040779e3d0f27bbc /examples
parent3812292d802de7b9e49fef9acc3e026a45dccbab (diff)
downloadvyos-live-build-d78619d404556a457c09563f78d19f0b00eb1ee5.tar.gz
vyos-live-build-d78619d404556a457c09563f78d19f0b00eb1ee5.zip
Removing update-initramfs.chroot example hook, obsoleted by live-builds own hacks.
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/hooks/update-initramfs.chroot15
1 files changed, 0 insertions, 15 deletions
diff --git a/examples/hooks/update-initramfs.chroot b/examples/hooks/update-initramfs.chroot
deleted file mode 100755
index b75b135bc..000000000
--- a/examples/hooks/update-initramfs.chroot
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/bin/sh
-
-# This is a hook for live-build(7) to rebuild the initramfs image.
-# To enable it, copy or symlink 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.
-
-for KERNEL in /boot/vmlinuz-*
-do
- VERSION="$(basename ${KERNEL} | sed -e 's|vmlinuz-||')"
-
- update-initramfs -k ${VERSION} -t -u
-done