Generally after the completion of the new kernel, the system is started by default or the old kernel, if not manually select is not to start the new kernel itself, so we can change the new kernel for the default boot!
#此案例是编译的4.4.0 New kernel!
View the default boot kernel
# grub2-editenv List
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/83/4D/wKiom1dv6VyB4ds2AAAWfJbb-xU174.png "title=" 1.png " alt= "Wkiom1dv6vyb4ds2aaawfjbb-xu174.png"/>
You can see that the default boot kernel is 3.10.0!
2. View all Cores
# Cat/boot/grub2/grub.cfg | grep menuentry
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/83/4C/wKioL1dv6gTCx8bQAAB7p0gwI70075.png "title=" 2.png " alt= "Wkiol1dv6gtcx8bqaab7p0gwi70075.png"/>
You can see that there are two versions of the kernel!
3. Then modify and modify the latest kernel as the default boot (you can only use the above command output in the double quotation mark "" or single quotation mark "in the content)
# grub2-set-default ' Red Hat Enterprise Linux Server (4.4.0) 7.2 (Maipo) '
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/83/4D/wKiom1dv6qPTgx5zAAAOJXlaK-A122.png "title=" 3.png " alt= "Wkiom1dv6qptgx5zaaaojxlak-a122.png"/>
4. Verify the default boot kernel
# grub2-editenv List
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/83/4C/wKioL1dv61Xjek0qAAARIVtY_jo048.png "title=" 4.png " alt= "Wkiol1dv61xjek0qaaarivty_jo048.png"/>
It can be seen that the default boot kernel is the new kernel!
Good luck to ^_^ o~!
This article is from the "hugyou" blog, make sure to keep this source http://hugyou.blog.51cto.com/11674506/1793094
Redhat/centos Setting the default boot kernel