linux --修改內核啟動項


1. check the kernel that has installed in the os :

[root@localhost centos]# awk -F\' '$1=="menuentry " {print $2}' /boot/efi/EFI/centos/grub.cfg
CentOS Linux (5.4.32) 7 (Core)
CentOS Linux (3.10.0-957.el7.x86_64) 7 (Core)
CentOS Linux (0-rescue-0d7254b68edc46d99a89bd8ad0818cf7) 7 (Core)

2.查看此時默認的啟動項

grub2-editenv list命令查看系統當前的默認內核
CentOS Linux (3.10.0-957.el7.x86_64) 7 (Core)
 
        

3.設置自己的需要的啟動項

使用命令grub2-set-default 'centOS Linux (5.4.32) 7 (Core)' 
done

4.reboot

 

  


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM