Remove old kernels (keeping 2)
$ yum install yum-utils
$ package-cleanup --oldkernels --count=2
Update grub's boot menu
It's probably a good idea to make a backup of the old grub.cfg file
$ grub2-mkconfig -o /boot/grub2/grub.cfg
This will update the grub config used to load the boot menu.
You can customize the menu order by renaming the 10_* entries in /etc/grub.d/
Customize the boot order:
Find the menu entries:
$ grep ^menuentry /boot/grub2/grub.cfg | cut -d "'" -f2
Set the default menu entry:
$ grub2-set-default 'one-of-the-above-menu-entries'
Check to see if it worked:
$ grub2-editenv list
No comments:
Post a Comment