summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbuild2
-rw-r--r--kernel-prerm.sh4
2 files changed, 6 insertions, 0 deletions
diff --git a/build b/build
index 60cc68e..c8931ff 100755
--- a/build
+++ b/build
@@ -23,6 +23,8 @@ install: build
# Install package hooks.
install -m 0755 -D ../kernel-postinst.sh \
dest/etc/kernel/postinst.d/99-lilo
+ install -m 0755 -D ../kernel-prerm.sh \
+ dest/etc/kernel/prerm.d/99-lilo
oh-fixperms
oh-strip
oh-installfiles
diff --git a/kernel-prerm.sh b/kernel-prerm.sh
new file mode 100644
index 0000000..5815727
--- /dev/null
+++ b/kernel-prerm.sh
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+# Backup the old Linux image.
+ln -f /boot/vmlinuz /boot/vmlinuz.old