查看已升级完成内核:
[root@centos76-649 ~]# awk -F\' '$1=="menuentry " {print $2}' /etc/grub2.cfg
CentOS Linux (5.12.12-1.el7.elrepo.x86_64) 7 (Core)
CentOS Linux (3.10.0-957.el7.x86_64) 7 (Core)
CentOS Linux (0-rescue-4cb870464ad646829ae39c1b1238f597) 7 (Core)
重新加载启动项
[root@centos76-649 ~]# grub2-mkconfig -o /boot/grub2/grub.cfg
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-5.12.12-1.el7.elrepo.x86_64
Found initrd image: /boot/initramfs-5.12.12-1.el7.elrepo.x86_64.img
Found linux image: /boot/vmlinuz-3.10.0-957.el7.x86_64
Found initrd image: /boot/initramfs-3.10.0-957.el7.x86_64.img
Found linux image: /boot/vmlinuz-0-rescue-4cb870464ad646829ae39c1b1238f597
Found initrd image: /boot/initramfs-0-rescue-4cb870464ad646829ae39c1b1238f597.img
done
重启centos服务器
[root@centos76-649 ~]# reboot
标签:x86,image,boot,64,内核,生效,Found,el7,centos7.6 From: https://blog.51cto.com/chinak/6206422