Bug 625216
| Summary: | grubby recieved SIGSEGV in kickstart | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Jack Neely <jjneely> | ||||
| Component: | grubby | Assignee: | Brian Lane <bcl> | ||||
| Status: | CLOSED NOTABUG | QA Contact: | Release Test Team <release-test-team-automation> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | low | ||||||
| Version: | 6.0 | CC: | borgan, gasmith, notting, pasteur, pjones, syeghiay | ||||
| 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: | 2011-01-10 19:41:08 UTC | Type: | --- | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Bug Depends On: | |||||||
| Bug Blocks: | 647893 | ||||||
| Attachments: |
|
||||||
|
Description
Jack Neely
2010-08-18 21:27:39 UTC
This looks similar to bug 592294. Created attachment 439696 [details]
grub configuration
This is the grub.conf that anaconda generates, but grubby fails to alter.
This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux maintenance release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux Update release for currently deployed products. This request is not yet committed for inclusion in an Update release. Now that RHEL 6 final is sitting on my test bench I've discovered that Grubby no longer segfaults in the kickstart %post script. Instead I get an error message grubby fatal error: unable to find a suitable template That the grub configuration is left unaltered. I'm still using the below grubby incantation. I've verified that all the files referenced and environment variables exist. /sbin/grubby --add-kernel=/boot/install/vmlinuz --title="Reinstall Workstation" --copy-default --args="ks=http://web-kickstart.linux.ncsu.edu/ks.py noshell noipv6 ksdevice=$KSDEVICE" --initrd=/boot/install/initrd.img Running the same command on the system after the install produces no error and correctly edits the grub.conf From the rhel6-list the following in your kickstart before any yum or grubby commands does work around the bug:
ln -s `awk '{ if ($2 == "/") print $1; }' /etc/fstab` /dev/root
If you're going to run grubby from %post, you're going to need to set up the environment that's needed on a running system, which includes that symlink. |