Re: How do I edit grub.conf during post install..

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux