|
本帖最后由 土著007 于 2025-1-12 09:19 编辑
uos是官网下载的x86版,电脑11代酷睿cpu,主板只有uefi模式,u盘是256G固态U盘,g4e和grub2的所有二级菜单都试过,都是启动到中途报错
set default=1
set fallback=1
set timeout=3
set pager=20
set grub_draw_border=1
#设定菜单字体及背景颜色
set menu_color_normal=white/black
set menu_color_highlight=white/blue
#loopback -m ramdisk /boot/grub2/unicode.xz
#loadfont (ramdisk)/grub2/fonts/unicode.pf2
#set locale_dir=(ramdisk)/grub2/locale
#set lang=zh_CN
#set gfxmode=auto,800x600,1024x768
#terminal_output gfxterm
set locale_dir=/boot/grub2/locale
set lang=zh_CN
loadfont /boot/grub2/fonts/unicode.pf2
set gfxterm_font=unicode
#set gfxmode=auto,800x600,1024x768
set gfxmode=1024x768,800x600,auto
terminal_output gfxterm
#background_image /boot/grub2/xxx.jpg
menuentry "0.Windows" "/EFI/Microsoft/Boot/bootmgfw.efi" --hotkey=0 {
search -n -s -f $2
chainloader $2
}
menuentry "/BOOT/UOS/uos-1070-202412.iso" "/BOOT/UOS/uos-1070-202412.iso" {
set gfxpayload=keep
search --no-floppy --set --file $2
loopback loop $2
linux (loop)/live/vmlinuz boot=live findiso=$2 components quiet splash
initrd (loop)/live/initrd.lz
}
menuentry "1.g4eBOOTX64.EFI by 2011yaya2007777 [UEFI]" --class GRUB2 {
if search -n -s -q -f /EFI/boot/g4eBOOTX64.EFI; then
chainloader /EFI/boot/g4eBOOTX64.EFI
elif search -n -s -q -f /boot/g4e/g4eBOOTX64.EFI; then
chainloader /boot/g4e/g4eBOOTX64.EFI
fi
}
menuentry "2.grubfm by Wintoflash" --hotkey=2 {
search --no-floppy --set --file /boot/grub2/grubfm/grubfmx64.efi
chainloader /boot/grub2/grubfm/grubfmx64.efi
}
menuentry "3.grubfm_iso_wim_img" --hotkey=3 {
export grub_file=/boot/imgs
configfile /boot/grub2/grubfm.cfg
}
menuentry "4.Reboot" --hotkey=4 {reboot}
menuentry "5.Halt" --hotkey=5 {halt}
|
|