Bug 707441 - Provide /usr/sbin/rhcrashkernel to replace crashkernel=auto
Summary: Provide /usr/sbin/rhcrashkernel to replace crashkernel=auto
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: kexec-tools
Version: 7.0
Hardware: All
OS: Linux
unspecified
high
Target Milestone: rc
: ---
Assignee: Baoquan He
QA Contact: Guangze Bai
URL:
Whiteboard:
Depends On:
Blocks: 693944 745179
TreeView+ depends on / blocked
 
Reported: 2011-05-25 05:17 UTC by Cong Wang
Modified: 2015-02-08 21:36 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-07-12 09:22:23 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Cong Wang 2011-05-25 05:17:42 UTC
Description of problem:

Comments from David Cantrell:
https://bugzilla.redhat.com/show_bug.cgi?id=693944#c23

What about moving the calculation of the crashkernel value out to a standalone
script or tool (e.g., /usr/sbin/rhcrashkernel) that we can run and get a
preferred crashkernel value for the boot loader configuration file?  During
initial installation, we [anaconda] can use that program to set up the boot
loader and you guys can run it from %post to modify existing boot loader
configuration files.  The %post script could key on the existence of a boot
loader configuration file appropriate to the platform as to whether or not it
should modify the crashkernel value.  You could provide the tool in the
kexec-tools package.

See also Bug 693944.

Comment 6 Baoquan He 2013-03-13 05:34:12 UTC
[alex@dhcp-16-252 kexec-tools]$ ls rhcrashkernel-param 
rhcrashkernel-param
[alex@dhcp-16-252 kexec-tools]$ cat rhcrashkernel-param 
#!/bin/sh
if grep -q Fedora /etc/redhat-release; then
    echo -n
else
    echo crashkernel=auto
fi


This has been added into rhel7.


Note You need to log in before you can comment on or make changes to this bug.