Bug 707441

Summary: Provide /usr/sbin/rhcrashkernel to replace crashkernel=auto
Product: Red Hat Enterprise Linux 7 Reporter: Cong Wang <amwang>
Component: kexec-toolsAssignee: Baoquan He <bhe>
Status: CLOSED CURRENTRELEASE QA Contact: Guangze Bai <gbai>
Severity: high Docs Contact:
Priority: unspecified    
Version: 7.0CC: dmaley, gbai, phan, rkhan, yshao
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-07-12 09:22:23 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 693944, 745179    

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.