Changing kernel in grub 2
Colin J Thomson
colin at g6avk.demon.co.uk
Fri Feb 3 20:07:54 UTC 2012
On Friday 03 Feb 2012 12:19:32 don fisher wrote:
> I have been using grub1, where you could edit the menu.1st command to
> change kernels. The only place that I see the kernels listed is in
> /boot/grub2/grub.cfg which is generated by the files in /etc.
>
> If the current kernel does not work as desired, how does one choose the
> previous kernel? The only choices I see are:
>
> 1. edit the script that says do not edit
> 2. remove the bad kernel from /boot and run grub2-mkconfig
>
> Please advise. Once boot is broken, it is really bad!
Don, make any changes in the grub file which is in /etc/default/
The line you want to edit is GRUB_DEFAULT=
and then run
grub2-mkconfig -o /boot/grub2/grub.cfg
Then the changes you made are kept during the next kernel update/reboot etc
HTH
Colin
--
Fedora release 16 (Verne)
Registered Linux user number #342953
More information about the users
mailing list