automagic rpm changes in grub.conf

Christoph Höger choeger at cs.tu-berlin.de
Sat Nov 10 14:55:43 UTC 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Mikkel L. Ellertson schrieb:
> Christoph Höger wrote:
>> hi,
>>
>> I have a little problem: I once had to change the default menu option in
>> grub.conf manually to pick a specific kernel.
>> Now (having removed that kernel some time ago) whenever I update my
>> kernel, rpm is so smart to not just leave that file untouched but change
>> the default value to where the old kernel is now. How can I force rpm to
>>  make the latest kernel default boot?
>>
>> regards
>>
>> christoph
> What does your grub.conf look like?
> 
> Mikkel
> 

Hi,

my grub.conf:

default=1
timeout=5
splashimage=(hd0,1)/grub/splash.xpm.gz
hiddenmenu
title Fedora (2.6.23.1-42.fc8)
        root (hd0,1)
        kernel /vmlinuz-2.6.23.1-42.fc8 ro root=LABEL=/ rhgb quiet
        initrd /initrd-2.6.23.1-42.fc8.img
title Fedora (2.6.23.1-21.fc7)
        root (hd0,1)
        kernel /vmlinuz-2.6.23.1-21.fc7 ro root=LABEL=/ rhgb quiet
        initrd /initrd-2.6.23.1-21.fc7.img
title Vista
        rootnoverify (hd0,0)
        chainloader +1

notice, that this is after the last kernel update. Before that update
default was 0. Rpm mentioned that I had changed this and changed it to 1
to have the same kernel as default.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFHNcZvhMBO4cVSGS8RAiM1AJ94X+oKrLvYt5OzrmSGovEI4+61bQCeINQw
qFGgCLRHCKrg9ahxKuAvXuE=
=BHaF
-----END PGP SIGNATURE-----




More information about the users mailing list