CentOS7 以rpm包方式升级内核
发布时间 2023-10-30 11:28:02作者: Peter_Yi
[root@localhost ~] awk -F\' '$1=="menuentry " {print $2}' /etc/grub2.cfg
CentOS Linux (4.4.179-1.el7.elrepo.x86_64) 7 (Core)
CentOS Linux (3.10.0-693.el7.x86_64) 7 (Core)
CentOS Linux (0-rescue-6d4c599606814867814f1a8eec7bfd1e) 7 (Core)
则直接输入“grub2-set-default 0”,下次启动即可从4.4启动。