Re: grub2 always defaults to old kernel despite correct configuration

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



...
> * Grubby seems to thing the default kernel is selected...but grub never boots it:
>   # grubby --grub2 --default-kernel

man grubby
=> no parameter "--grub2"

>   /boot/vmlinuz-5.3.7-301.fc31.x86_64
>   # rpm -q kernel
>   kernel-5.2.18-200.fc30.x86_64
>   kernel-5.3.7-200.fc30.x86_64
>   kernel-5.3.7-301.fc31.x86_64
> 

you could remove fc30 one's:

rpm -qa | grep kernel-core
sudo dnf remove kernel-core-<fill in the correct version numbers>


> Can anyone tell me where to investigate please?
> 

cat /etc/default/grub

GRUB_DEFAULT=???

"0" or "saved"
I guess - my config is changed - "saved" is the fedora default

"0" should do what you want: the lastest installed kernel is the top most in the grub-boot-menu.

- if I pick it right - "saved" needs to select the lastest kernel in grub-/boot menu manually only ONCE and that selection should become the default forever (but only until the next kernel update)  


if you change /etc/default/grub you need to run grub2-mkconfig:

[ -d /sys/firmware/efi/efivars ] && sudo grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg || sudo grub2-mkconfig -o /boot/grub2/grub.cfg

the last line is only ONE line from "[" to "g" ! 
it's a short form of an "if" - "then" - "else" 
where:
"&&" means "then"
"||"    means "else"
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux