Centos7修改Linux内核版本

Linux技术 未分类

 

uname -r

 

wget https://helianinfo.oss-cn-hangzhou.aliyuncs.com/kernel-3.10.0-957.10.1.el7.x86_64.rpm

yum install kernel-3.10.0-957.10.1.el7.x86_64.rpm

 

[root@localhost ~]# 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-957.10.1.el7.x86_64) 7 (Core)’ –class centos –class gnu-linux –class gnu –class os –unrestricted $menuentry_id_option ‘gnulinux-3.10.0-862.el7.x86_64-advanced-7707aea5-2fd6-4441-97f8-41f0a667abe2’ {
menuentry ‘CentOS Linux (3.10.0-862.el7.x86_64) 7 (Core)’ –class centos –class gnu-linux –class gnu –class os –unrestricted $menuentry_id_option ‘gnulinux-3.10.0-862.el7.x86_64-advanced-7707aea5-2fd6-4441-97f8-41f0a667abe2’ {
menuentry ‘CentOS Linux (0-rescue-9212163e296b4126b01a7f915775de26) 7 (Core)’ –class centos –class gnu-linux –class gnu –class os –unrestricted $menuentry_id_option ‘gnulinux-0-rescue-9212163e296b4126b01a7f915775de26-advanced-7707aea5-2fd6-4441-97f8-41f0a667abe2’ {

 

[root@localhost ~]# grub2-set-default “CentOS Linux (3.10.0-862.el7.x86_64) 7 (Core)”

[root@localhost ~]# grub2-editenv list
saved_entry=CentOS Linux (3.10.0-862.el7.x86_64) 7 (Core)

 

 

 

[root@localhost ~]# grub2-set-default “CentOS Linux (3.10.0-957.10.1.el7.x86_64) 7 (Core)”

[root@localhost ~]# grub2-editenv list
saved_entry=CentOS Linux (3.10.0-957.10.1.el7.x86_64) 7 (Core)

 

发表回复