PDA

View Full Version : 2 Fedoras in Boot Menu after update



knot2afrayed
15th September 2006, 03:30 AM
After updating yum in fedora 5, and rebooting, I have two choices for Fedora OS's in the boot menu- with slightly different number suffixes.

Is this normal?
This seemed slightly odd to me.

marko
15th September 2006, 03:44 AM
knot2afrayed
That's very normal, you did a yum update and one of the packages was a
newer kernel, yum installed the newer kernel and then yum added the
new kernel to the grub boot menu. It leaves the old kernel so you have
a choice, you can fall back to using the older one by moving the selection
bar down in grub. Related to handling kernels in yum is a plugin
called installonlyn.conf, it will only keep old kernels back to the Nth one,
where number N is set in the plugin itself in
/etc/yum/pluginconf.d/installonlyn.conf, this is so
the usually small /boot directory doesn't overfill with old kernels.


[main]
tokeep = 4
enabled = 1

setting that "enabled" to 0 will selectively disable the installonlyn plugin

you can totally disable any yum plugins from working by
setting in /etc/yum.conf:


plugins = 0

a very good explanation showing yum doing this:
yum kernel updating (http://fedoranews.org/cms/node/1245)

Mark

bob
15th September 2006, 03:58 AM
It's always a good idea to keep at least one working kernel besides the newest one in case problems develop.

knot2afrayed
15th September 2006, 08:19 AM
Thanks for the explanation.

If one changes the lines in /etc/yum/pluginconf.d/installonlyn.conf to


[main]
tokeep = 3
enabled = 1


then will it keep at most 3 kernels?

marko
15th September 2006, 02:11 PM
Thanks for the explanation.

If one changes the lines in /etc/yum/pluginconf.d/installonlyn.conf to


[main]
tokeep = 3
enabled = 1


then will it keep at most 3 kernels?

Yes, the oldest of the three is removed and the new one is
installed and the grub menu is updated to match that.
Mark

THE Ralfinator
9th March 2007, 04:50 AM
Finally, I've found the answer to this! I've been looking for a while. Just figured I'd bump it on up a bit in case someone else was wondering too :p.

knadoor
9th March 2007, 08:15 AM
Finally, I've found the answer to this! I've been looking for a while. Just figured I'd bump it on up a bit in case someone else was wondering too :p.
yes me too! :p

THE Ralfinator
10th March 2007, 03:10 AM
Lol, well happy to lend a hand, knadoor. :)

knadoor
10th March 2007, 09:45 AM
Lol, well happy to lend a hand, knadoor. :)
haha thanks man for the bump. :p