Re: grub2 always defaults to old kernel despite correct configuration

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

 



Tim:
>> Doing a bit of googling, /boot/grub2/grubenv file cannot be manually
>> edited.  Use the following command instead: 
>>
>> [root@host ~]# grub2-set-default 0
>> [root@host ~]# grub2-editenv list
>> saved_entry=0
>>
>> That 0 should mean the most recently installed kernel.

(I should add that the set-default command sets it, the subsequent list
command line just confirms the change.)


Not Random:
> Thank you so much Tim!  When I ran 'grub2-set-default 0' again and
> ran grub2-mkconfig it seems to have worked!  I've rebooted twice and
> the system seems to work.

Interesting.  The page I found the info on didn't mention using
"grub2-mkconfig", so I wonder if it's necessary.  You could try setting
the default to 1, then rebooting without using the mkconfig thing, and
see if the set default command works by itself.

(I'm not in a position to try this myself, just at the moment.)
 
-- 
 
uname -rsvp
Linux 3.10.0-1062.4.1.el7.x86_64 #1 SMP Fri Oct 18 17:15:30 UTC 2019 x86_64
 
Boilerplate:  All unexpected mail to my mailbox is automatically deleted.
I will only get to see the messages that are posted to the mailing list.
 
_______________________________________________
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