[Yum] grub.conf after a kernel update/install

seth vidal skvidal at phy.duke.edu
Wed Aug 18 13:50:35 UTC 2004


On Mon, 2004-08-16 at 11:03 -0400, Paul Pianta wrote:
> Hey people,
> 
> I am interested in knowing how yum manages to configure grub.conf after 
> an install of a kernel package.
> 
> A manual rpm kernel installation (rpm -ivh) will place the new kernel at 
> the top of the grub.conf list but it will not change the 'default' 
> setting to boot from this new kernel.
> 
> A yum update of a kernel package (which is actually an install) manages 
> to change the default setting to boot the new kernel. I like this 
> behaviour and was wondering if someone could tell me how it is done.
> 
> I want to know because I would also like to change the default grub 
> entry title to a custom title and if I can hack yum to do it for me - it 
> would save a perl one-liner later on ...
> 
> Anyone willing to enlighten me?

if you'd like - look in pkgaction.py the function you're looking for is
kernelupdate(). It shouldn't be too hard to follow. It ultimately relies
on some code I lifted from up2date and modified a little bit.

-sv





More information about the Yum mailing list