Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 107527 - kexec-tools: Default value for KPARAM
Summary: kexec-tools: Default value for KPARAM
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High enhancement
Assignee: Stefan Schweizer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-28 10:51 UTC by James Le Cuirot
Modified: 2006-01-20 12:39 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description James Le Cuirot gentoo-dev 2005-09-28 10:51:50 UTC
At the moment, /etc/init.d/kexec autodetects everything except the kernel 
parameters which seems a bit silly because it can easily be done. It would save 
you from having to modify the parameters in two places though a proper reboot 
would be required for them to take effect. It's better than nothing. I added 
this line and it works great.

[ -z "$KPARAM" ] && KPARAM="`sed -r 's:root=[a-zA-Z0-9/]+\s*::g' /proc/cmdline`"
Comment 1 Stefan Schweizer (RETIRED) gentoo-dev 2006-01-20 12:39:20 UTC
thanks, fixed