|
楼主 |
发表于 2019-8-7 11:17:10
|
显示全部楼层
附上grub.cfg档部分。头部:
- set default="1"
- function load_video {
- insmod efi_gop
- insmod efi_uga
- insmod video_bochs
- insmod video_cirrus
- insmod all_video
- insmod font
- insmod gfxterm
- insmod gfxmenu
- insmod gettext
- insmod jpeg
- insmod png
- insmod vbe
- insmod vga
- }
- load_video
- #倒计时
- set timeout=300
- #颜色
- set color_normal=green/black
- set color_highlight=white/cyan
- #set gfxmode=auto
- terminal_output gfxterm
- if terminal_output gfxterm ; then true ; else
- terminal gfxterm
- fi
- set gfxpayload=keep
- #加载unicode字体显示中文
- set lang=zh_CN
- set locale_dir=${prefix}/locale
- if [ ${grub_platform} = efi ] ;then
- set gfxmode=auto
- loadfont ${prefix}/fonts/unicode.pf2
- #loadfont ${prefix}/fonts/wqyMicroHei12px.pf2
- #set gfxterm_font=${prefix}/fonts/wqyMicroHei12px.pf2
- else
- set gfxmode=1024*768,auto
- loadfont ${prefix}/fonts/unicode.pf2
- fi
- insmod gzio
- insmod part_gpt
- insmod ext2
复制代码
菜单部分:
- if [ ${grub_platform} = pc ] ;then
- menuentry " Win10 PE (from wimboot) " {
- linux16 ${prefix}/wimboot
- insmod progress
- echo 'Loading WinImage....'
- echo
- initrd16 newc:bcd:/10PE/bcd-bios newc:boot.sdi:/10PE/boot.sdi newc:bootmgr:/Boot/bootmgr newc:boot.wim:/10PE/WinPE64.wim
- }
- menuentry " 启动 03PE"{
- search --file /BOOT/03WQ_LDR.BIN --set=root
- insmod ntldr
- ntldr /BOOT/03WQ_LDR.BIN
- }
- menuentry " 磁盘精灵 DiskGenius" {
- insmod memdisk
- insmod fat
- linux16 /syslinux/memdisk raw
- initrd16 /BOOT/imgs/diskgen.img
- }
- #。。。省略部分。。。
- fi
复制代码 |
|