summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2013-12-28 20:16:29 +0000
committerJustin Lecher <jlec@gentoo.org>2013-12-28 20:16:29 +0000
commitdf20c658ba7e72844485b75335e7dc08448f3568 (patch)
tree5edb300677ffc2097b78ca3c49ab8071f22d5107 /sys-apps/kexec-tools/files
parentalpha stable wrt bug #492078 (diff)
downloadgentoo-2-df20c658ba7e72844485b75335e7dc08448f3568.tar.gz
gentoo-2-df20c658ba7e72844485b75335e7dc08448f3568.tar.bz2
gentoo-2-df20c658ba7e72844485b75335e7dc08448f3568.zip
sys-apps/kexec-tools: Add postinst script for installkernel(8), #491044
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key B9D4F231BD1558AB!)
Diffstat (limited to 'sys-apps/kexec-tools/files')
-rw-r--r--sys-apps/kexec-tools/files/90_kexec9
1 files changed, 9 insertions, 0 deletions
diff --git a/sys-apps/kexec-tools/files/90_kexec b/sys-apps/kexec-tools/files/90_kexec
new file mode 100644
index 000000000000..40bad423955d
--- /dev/null
+++ b/sys-apps/kexec-tools/files/90_kexec
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+version="$1" ; shift
+image="$1" ; shift
+
+exec sed \
+ -e "s:\"vmlinuz-.*\":\"vmlinuz-${version}\":" \
+ -e "s:/boot/initramfs-.*\.img:/boot/initramfs-${version}\.img:" \
+ -i /etc/kexec.conf