Red Hat Bugzilla – Bug 1476620
fc25 kernel listed above fc26 kernel in grub menu so that system defaults to older kernel
Last modified: 2017-07-30 16:49:00 EDT
Created attachment 1306697 [details]
Listing of files in boot directory
fc25 kernel listed above fc26 kernel in grub menu so that system defaults to older kernel.
My last fc25 kernel was vmlinuz-4.11.12-200-fc25.x86_64. This seems to be recognised by grub (or whichever component writes the grub menu or grub.cfg) as a later kernel than my fc26 kernel which is vmlinuz-4.11.11-300-fc26.x86_64. It looks like 4.11.12 is 'seen' as later than 4.11.11 and the Fedora release number disregarded.
Version-Release number of selected component (if applicable):
Unknown as only seen after upgrading major version.
Steps to Reproduce:
1. Upgrade from Fedora 25 to Fedora 26 when fc 26 kernel number 'appears' lower than fc 25 kernel number (2017-07-29 in my case)
Grub defaults to an fc25 kernel
fc 26 kernel should be preferred to any kernels from previous major release
(Apologies if this is irrelevant - I don't report much so I'll err on the side of including too much).
I upgraded from Fedora 25 to Fedora 26 using the GUI Software (PackageKit?) option. Upgrade proceeded well and I came back to a log in prompt. I should probably say that at this stage the evidence is that I WAS using the one installed fc 26 kernel (see below).
I probably would not have noticed the kernel issue except that I tried installing a different Plymouth theme. Rebooting several times kept displaying the 'old' boot animation (despite use of dracut -f).
Checking which initramfs was being updated alerted me to the fact that I had a bunch of old kernels in the boot directory (at time I thought this was significant, but now I think it may be a red herring). That said, I had some 'Rescue' kernels and dracut was rebuilding an initrd in a directory with a 32 char alphanumeric string from one of these rescue kernels (renamed as zzz... in listing of boot attached).
Thinking about specifying an initramfs to be rebuilt led me to the uname command which is when I realised I'd booted into an fc25 kernel. Manually selecting the fc26 kernel in grub during boot gave the expected 'new' Plymouth theme straight away which I why I believe that the upgrade process had booted into the one fc26 kernel available (and dracut rebuilt the correct initramfs).
I am currently selecting the correct kernel manually rather than overwriting the 'use latest kernel' in expectation that an fc26 kernel will at some point be 'seen' as latest.
The zzz... directory contained just one subdirectory named 4.11.11-300-fc26.x86_64 which contained just one file, an initrd which was updated by dracut? grub-mkconfig? Sorry, can't be more accurate.