欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

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
#

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"

更新配置文件

grub启动项设置

相关标签: linux