diff options
author | Stefan Schweizer <genstef@gentoo.org> | 2008-01-21 08:51:10 +0000 |
---|---|---|
committer | Stefan Schweizer <genstef@gentoo.org> | 2008-01-21 08:51:10 +0000 |
commit | c0ea9bbebc7fe66e60df0a15ecf2467139bfc0a3 (patch) | |
tree | 8effb51fd98a3cd17611c772ccd9b0f181e616c1 /sys-apps/kexec-tools/files/kexec.init | |
parent | We need dev-perl/XML-DOM for tests, adding the dep (diff) | |
download | historical-c0ea9bbebc7fe66e60df0a15ecf2467139bfc0a3.tar.gz historical-c0ea9bbebc7fe66e60df0a15ecf2467139bfc0a3.tar.bz2 historical-c0ea9bbebc7fe66e60df0a15ecf2467139bfc0a3.zip |
set KPARAM correctly thanks to Friedrich Oslage <bluebird@porno-bullen.de> in bug 203406
Package-Manager: portage-2.1.4
Diffstat (limited to 'sys-apps/kexec-tools/files/kexec.init')
-rwxr-xr-x | sys-apps/kexec-tools/files/kexec.init | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys-apps/kexec-tools/files/kexec.init b/sys-apps/kexec-tools/files/kexec.init index 785831bf0693..10cf6e58a63a 100755 --- a/sys-apps/kexec-tools/files/kexec.init +++ b/sys-apps/kexec-tools/files/kexec.init @@ -1,7 +1,7 @@ #!/sbin/runscript # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-apps/kexec-tools/files/kexec.init,v 1.9 2007/03/13 07:33:24 uberlord Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/kexec-tools/files/kexec.init,v 1.10 2008/01/21 08:51:10 genstef Exp $ depend() { need localmount @@ -52,7 +52,7 @@ load_image() { ROOTPART="$(sed -n '/^[^ ]* \/ / s,^\([^ ]*\).*,\1,p' /etc/mtab)" fi if [ -z "${KPARAM}" ] ; then - KPARAM="$(sed -r 's:root=[a-zA-Z0-9/]+\s*::g' /proc/cmdline)" + KPARAM="$(sed -e 's/ /\n/g' /proc/cmdline | grep -v -e "^root=" | tr '\n' ' ')" fi # Use the default initrd if it exists and none other given |