grub启动项设置
程序员文章站
2022-07-15 11:06:16
...
相关命令
- 生成配置文件
根据
/etc/grub.d
下的模板以及/etc/default/grub
文件进行设置
grub-mkconfig
- 更新配置文件
update-grub
生成配置文件
Generating grub configuration file ...
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
基本设置
文件:
/etc/default/grub
aaa@qq.com:/etc/default# cat grub
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
# info -f grub -n 'Simple configuration'
GRUB_DEFAULT=2 # 默认启动的操作系统
GRUB_TIMEOUT=5 # 等待时间
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet"
GRUB_CMDLINE_LINUX=""
# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480
GRUB_THEME="/usr/share/grub/themes/Tela/theme.txt"