diff options
author | Justin Lecher <jlec@gentoo.org> | 2013-12-28 20:16:29 +0000 |
---|---|---|
committer | Justin Lecher <jlec@gentoo.org> | 2013-12-28 20:16:29 +0000 |
commit | df20c658ba7e72844485b75335e7dc08448f3568 (patch) | |
tree | 5edb300677ffc2097b78ca3c49ab8071f22d5107 /sys-apps/kexec-tools/files | |
parent | alpha stable wrt bug #492078 (diff) | |
download | gentoo-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_kexec | 9 |
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 |