F20: yum update does not automatically update grub2

Chris Murphy lists at colorremedies.com
Tue Dec 24 16:04:27 UTC 2013


On Dec 24, 2013, at 2:12 AM, Michael Schwendt <mschwendt at gmail.com> wrote:

> On Mon, 23 Dec 2013 19:25:49 -0600, Ranjan Maitra wrote:
> 
>> ### BEGIN /etc/grub.d/10_linux ###
>> menuentry 'Fedora, with Linux 3.11.10-301.fc20.x86_64' --class fedora
>> --class gnu-linux --class gnu --class os $menuentry_id_option
>> 'gnulinux-3.11.10-301.fc20.x86_64-advanced-f96397ae-311d-4826-8fb0-6a0fe710dd9c' { load_video
>> set gfxpayload=keep insmod gzio
>> 	insmod part_msdos
>> 	insmod ext2
>> 	set root='hd0,msdos1'
>> 	if [ x$feature_platform_search_hint = xy ]; then
>> 	  search --no-floppy --fs-uuid --set=root
>> --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1
>> --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1'
>> 54f94607-a593-4d5c-b03a-356574992f4e else search --no-floppy --fs-uuid
>> --set=root 54f94607-a593-4d5c-b03a-356574992f4e fi
>> linux	/vmlinuz-3.11.10-301.fc20.x86_64 resume=/dev/sda2
>> root=/dev/sda3 ro vconsole.font=latarcyrheb-sun16  nomodeset rhgb
>> quiet } 
> 
> There is no "initrd" parameter for this first boot entry!
> What are the contents of the /boot directory?

Right, so how is this computer even bootable? These kernels, without an initramfs, will face plant on boot.

I've found that anaconda sometimes issues grub2-mkconfig before the initramfs is built, but it got fixed later once new-kernel-pkg called grubby. Yet grubby is failing on this computer, which might be why this entry was never fixed.

The one other time I've seen this behavior, with a missing initrd entry, and grubby's failure to "fix" it, was when I placed /boot on Btrfs (as its own subvolume). This confuses grubby. But I'm not seeing an insmod btrfs in this grub.cfg. And I'm not seeing that this computer has UEFI firmware or it would have an insmod part_gpt.

So I'd like to see the output from:

grub2-install --debug /dev/sda
bash -x grub2-mkconfig -o /boot/grub2/grub.cfg
/boot/grub2/grub.cfg  #from the above command


Chris Murphy



More information about the users mailing list