鲁瑞彬 linux内核启动项中英文注释 grub.cfg

您所在的位置:网站首页 启动项菜单 鲁瑞彬 linux内核启动项中英文注释 grub.cfg

鲁瑞彬 linux内核启动项中英文注释 grub.cfg

2023-03-10 12:20| 来源: 网络整理| 查看: 265

#                                                            #

其中加

#

的均为注释项

#  DO NOT EDIT THIS FILE        

#  

不能编辑的程序文档

(说明此文档涉及启动项,

为系统文件,

不能随意编译)

# It is automatically generated by /usr/sbin/grub-mkconfig using 

templates 

#

它会自动通过

/ usr / sbin / grub-mkconfig

使用生成的模板

# from /etc/grub.d and settings from /etc/default/grub 

#

/ etc / grub.d

和从

/ etc /defaule/grub

设置

### BEGIN /etc/grub.d/00_header ### 

###

etc/grub.d/00_heade

目录下开始

if [ -s /boot/grub/grubenv ]; then                                   

 #

配置开机启动项

  have_grubenv=true 

  load_env 

fi 

set default="6"                    

#

默认为

6

(已经修改,即默认启动项为

windowsXP

if [ ${prev_saved_entry} ]; then 

  saved_entry=${prev_saved_entry} 

  save_env saved_entry 

  prev_saved_entry= 

  save_env prev_saved_entry 

fi 

insmod ext2             

  

#

除了用作启动的分区外,其他分区格式可在

menu

底下再添加

set root=(hd0,8)                                                    

#

设定

root

分区

search 

--no-floppy 

--fs-uuid 

--set 

a60b11f3-d477-4121-8914-d1e1e0159851 

#

设定

uuid=****

的分区为

root 

if  loadfont /usr/share/grub/unicode.pf2 ; then 

   #

设置终端字体,

unicode.pf2

支持中文显示

  set gfxmode=640x480                                 

 #

设置分辨率,默认为

 640x480 

  insmod gfxterm                                    

#

插入模块

 gfxterm

,支持中文显示

  insmod vbe                                                      

   #

插入

 vbe 

模块

 if terminal_output gfxterm ; then true ; else     

 #

设置

 GRUB 2 

终端为

 gfxterm 

   # 

For 

backward 

compatibility 

with 

versions 

of 

terminal.mod 

that 

don't 

   # understand terminal_output terminal gfxterm 

   fi 

fi 



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3