summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKim Hagen <kim.sidney@gmail.com>2016-02-05 11:26:15 -0500
committerKim Hagen <kim.sidney@gmail.com>2016-02-05 11:26:15 -0500
commit9d55d9c93d232441509232b3613354f9d409c961 (patch)
tree0faf8bd71588cfaa1ff87b16c30b4183f6c3e8a2
parent89b0d6e89a06a0e56f32f4ee5f875b62fe885ee0 (diff)
downloadvyos-build-9d55d9c93d232441509232b3613354f9d409c961.tar.gz
vyos-build-9d55d9c93d232441509232b3613354f9d409c961.zip
Add binary hook for backwards compatibility and a hook that creates symlinks for vmlinuz and initrd.img.
-rwxr-xr-xdata/live-build-config/hooks/00-manifest.binary4
-rwxr-xr-xdata/live-build-config/hooks/17-kernel_symlinks.chroot6
2 files changed, 10 insertions, 0 deletions
diff --git a/data/live-build-config/hooks/00-manifest.binary b/data/live-build-config/hooks/00-manifest.binary
new file mode 100755
index 0000000..6db8b6f
--- /dev/null
+++ b/data/live-build-config/hooks/00-manifest.binary
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+echo I: Backwards compat packages.txt
+echo "ii vyatta-version " > binary/live/packages.txt
diff --git a/data/live-build-config/hooks/17-kernel_symlinks.chroot b/data/live-build-config/hooks/17-kernel_symlinks.chroot
new file mode 100755
index 0000000..e63ca26
--- /dev/null
+++ b/data/live-build-config/hooks/17-kernel_symlinks.chroot
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+echo I: Creating kernel symlinks.
+cd /boot
+ln -s initrd.img-* initrd.img
+ln -s vmlinuz-* vmlinuz