Red Hat Bugzilla – Bug 1025561
"root (hd1,0)" written to grub.conf during kickstart
Last modified: 2014-01-29 09:24:53 EST
Description of problem:
During kickstart from a USB stick, if we do not remove the USB stick before the grub portion of the install takes place, the grub.conf is populated with "root (hd1,0)" instead of "root (hd0,0)" for boot entries. If we leave the USB stick inserted all the way through the install until reboot, then the superblock of the USB stick is overwritten with the GRUB install from the kickstart.
Version-Release number of selected component (if applicable):
RHEL 5.8 -- How to determine anaconda/kickstart version?
Steps to Reproduce:
1. Setup a USB stick to kickstart a machine and boot the machine to the installer.
2. Remove the USB stick once the graphical installer is loaded.
3. Complete the install and reboot, and you see it boots.
4. Reinsert USB stick and reboot, re-running the kickstart.
5. Proceed through the kickstart without removing the stick and then remove it during reboot.
6. See it starts to load grub but fails.
Overwrites USB stick superblock, or at the very least writes to hard disk superblock, but uses incorrect root line in grub.conf if not USB stick is not removed in the early stages of configuration (IP configuration etc)
Should always ignore USB stick and write to superblock of hard disk, and use correct root line in grub.conf
I can send an image of my USB stick if necessary, and any config files needed from kickstart -- just let me know which ones are needed.
This request was evaluated by Red Hat Product Management for inclusion
in a Red Hat Enterprise Linux release. Product Management has
requested further review of this request by Red Hat Engineering, for
potential inclusion in a Red Hat Enterprise Linux release for currently
deployed products. This request is not yet committed for inclusion in
Abort. We managed to fix this by changing flags in the kickstart file. Please resolve as notabug.
Closing per comment 2.