How do I edit grub.conf during post install..
Philip Rowlands
phr at doc.ic.ac.uk
Tue Aug 17 19:31:41 UTC 2004
Please don't post HTML to mailing lists
On Tue, 17 Aug 2004, Davis, Harry wrote:
>I have a stituation where a Hyperthreading system needs to automatically
>come up in a Uniprocessor kernel. I've tried a couple of simepl things,
>such as running:
>
>%post
>sed '/default/s/0/1/g' /mnt/sysimage/boot/grub/grub.conf
Where's this writing to? As you have it here, it'll fall out of stdout,
/dev/tty3 by default in a kickstart install, but that won't fix it in
the actual file.
>And if I force a the system not to reboot, I see that the changes are
>made. What happens after the post install is finished that is causing
>Grub to revert to the SMP kerenel?
Nothing runs after %post (AFAIK). Try this:
%post
perl -pi -e 's/^default=0/default=1/' /boot/grub/grub.conf
Cheers,
Phil
More information about the Kickstart-list
mailing list