sudo vi /etc/default/grub
ubuntu下此文件有可能只读
sudo chmod 666 grub
添加标红的一句
grub2-mkconfig -o /boot/grub2/grub.cfg
此命令在centos下更新启动项
ubuntu下的命令为:
update-grub