Linux基础——BCLinuxOE21.10配置默认启动内核
# 查看内核菜单
[root@harbor kernel]# 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 'BigCloud Enterprise Linux (4.19.90-2107.6.0.0100.oe1.bclinux.x86_64) 21.10 (LTS-SP2)' --class bigcloud --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-0-rescue-d24f36113bef4feb89c6b7fe93b524d4-advanced-1624fa73-8ed0-4870-bfc6-d98748252a89' { menuentry 'BigCloud Enterprise Linux (0-rescue-d24f36113bef4feb89c6b7fe93b524d4) 21.10 (LTS-SP2)' --class bigcloud --class gnu-linux --class gnu --class os --unrestricted $menuentry_id_option 'gnulinux-0-rescue-d24f36113bef4feb89c6b7fe93b524d4-advanced-1624fa73-8ed0-4870-bfc6-d98748252a89' { # 查看当前内核
[root@harbor kernel]# grub2-editenv list saved_entry=BigCloud Enterprise Linux (4.19.90-2107.6.0.0100.oe1.bclinux.x86_64) 21.10 (LTS-SP2) boot_success=0
# 根据grub中的内核条目设置默认启动内核 [root@harbor kernel]# grub2-set-default 'BigCloud Enterprise Linux (4.19.90-2107.6.0.0100.oe1.bclinux.x86_64) 21.10 (LTS-SP2)'
# 重启 [root@harbor kernel]# reboot
稳步前行,只争朝夕。