centos7 set the kernel boot sequence

1, see the equipment installed several kernel

cat /boot/grub2/grub.cfg | grep menu entry

 

 

 

2, view the current kernel

Grub2-editenv list

saved_entry=CentOS Linux (4.9.137-1.el7.x86_64) 7 (Core)

3, modify the default boot kernel

grub2-set-default 'CentOS Linux (3.10.0-957.el7.x86_64) 7 (Core)'

Reproduced in: https: //www.cnblogs.com/zhangzhide/p/11064859.html

Guess you like

Origin www.cnblogs.com/mangoVic/p/11907099.html