使用cat /boot/grub2/grub.cfg |grep menuentry 查看系统可用内核 [root@bigapp-slave27 ~]# cat /boot/grub2/grub.cfg |grep menuentry if [ x${feature_menuentry_id} = xy ]; then menuentry_id_option=--id menuentry_id_option= export menuentry_id_option menuentry 'CentOS Linux (3.10.0-514.16.1.el7.x86_64) 7