|
安装好优麒麟后,硬盘以GRUB2的形式启动,如下是启动硬盘上的 Windows 系统(相关段落):
- ### BEGIN /etc/grub.d/30_os-prober ###
- menuentry 'Windows Boot Manager (在 /dev/sda2)' --class windows --class os $menuentry_id_option 'osprober-efi-DAD3-AEBD' {
- insmod part_gpt
- insmod fat
- set root='hd0,gpt2'
- if [ x$feature_platform_search_hint = xy ]; then
- search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2 DAD3-AEBD
- else
- search --no-floppy --fs-uuid --set=root DAD3-AEBD
- fi
- chainloader /EFI/Microsoft/Boot/bootmgfw.efi
- }
- set timeout_style=menu
- if [ "${timeout}" = 0 ]; then
- set timeout=10
- fi
- ### END /etc/grub.d/30_os-prober ###
复制代码
U 盘是优麒麟的安装 U 盘,U盘上也同时 COPY 有支持 Win10 的启动文件:
bootmgr
bootmgr.efi
<boot>
<efi>
请问:U盘 GRUB2 菜单该如何创建才可以启动U盘上的 bootmgr 或 bootmgr.efi ?
请问:U盘 GRUB2 菜单该如何创建才可以启动U盘上的 bootmgr 或 bootmgr.efi ?
请问:U盘 GRUB2 菜单该如何创建才可以启动U盘上的 bootmgr 或 bootmgr.efi ?
附上优麒麟的 U 盘启动菜单 U:\boot\grub\grub.cfg:
- set timeout=30
- loadfont unicode
- set menu_color_normal=white/black
- set menu_color_highlight=black/light-gray
- menuentry "Ubuntu Kylin" {
- set gfxpayload=keep
- linux /casper/vmlinuz file=/cdrom/preseed/ubuntu.seed locale=zh_CN keyboard-configuration/layoutcode?=cn maybe-ubiquity quiet splash ---
- initrd /casper/initrd
- }
- menuentry "Ubuntu Kylin (safe graphics)" {
- set gfxpayload=keep
- linux /casper/vmlinuz nomodeset file=/cdrom/preseed/ubuntu.seed locale=zh_CN keyboard-configuration/layoutcode?=cn maybe-ubiquity quiet splash ---
- initrd /casper/initrd
- }
- menuentry "OEM install (for manufacturers)" {
- set gfxpayload=keep
- linux /casper/vmlinuz file=/cdrom/preseed/ubuntu.seed locale=zh_CN keyboard-configuration/layoutcode?=cn only-ubiquity oem-config/enable=true quiet splash ---
- initrd /casper/initrd
- }
- grub_platform
- if [ "$grub_platform" = "efi" ]; then
- menuentry 'Boot from next volume' {
- exit
- }
- menuentry 'UEFI Firmware Settings' {
- fwsetup
- }
- fi
复制代码
|
|