Ask Your Question
0

Why isn't my grub.conf updated after kernel updates?

asked 2012-01-24 02:47:14 -0500

gspe gravatar image

updated 2012-01-25 05:34:20 -0500

FranciscoD_ gravatar image

Hi everybody, i have problem with grubby i think. Every time i update my system installing new kernel my grub.conf isn't updated automatically so i ha to update it manually with

grub2-mkconfig -o /boot/grub2/grub.cfg

Another problem is that i have only one kernel installed instead of the default 3

So i'm looking for suggestion of what i have to check in order to make grubby to works.

Thanks

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted
0

answered 2012-01-25 10:40:23 -0500

gspe gravatar image

Was a fresh install. I use btrfs file system.

This is my yum.conf


[main]
cachedir=/var/cache/yum/$basearch/$releasever
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
installonly_limit=3

I also use zif as alternative to yum and this is my zif.conf


.....
# Some packages are allowed multiple versions, e.g. most kernel packages
#
installonly_limit=3

# These packages are allowed multiple versions
#
installonlypkgs=kernel,kernel-bigmem,kernel-enterprise,kernel-smp,
kernel-modules,kernel-debug,kernel-unsupported,kernel-source,
kernel-devel,kernel-PAE,kernel-PAE-debug
.....

I just want to say that I had this problem before I started to use zif

edit flag offensive delete link more
0

answered 2012-01-28 03:16:31 -0500

Check that /etc/grub2.cfg is a link to /boot/grub2/grub.cfg . The file in /boot is the actual one used by grub2, and the link in /etc is only used by grubby to find it during kernel updates.

On my system, /etc/grub2.cfg somehow became a regular file (not a link), and during updates, it would get updated, while leaving /boot/grub2/grub.cfg unchanged. This might be a side effect of the Fedora 16 upgrade process, but it could also be that I clobbered the file somehow.

edit flag offensive delete link more
0

answered 2012-01-25 05:33:49 -0500

FranciscoD_ gravatar image

Did you do a fresh install, or was it an upgrade? Please paste the contents of /etc/yum.conf here too.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2012-01-24 02:47:14 -0500

Seen: 4,337 times

Last updated: Jan 28 '12