|
本帖最后由 hhh333 于 2020-3-24 10:09 编辑
下载地址https://sourceforge.net/projects/refind/files/
前面版本启动slitaz好像有问题,这次可以了。
这个工具最强大的地方就是可以搜索所有可以EFI启动的物件。
前面这些就是它自动搜出来的启动器,后面才是自己写的菜单,新版本增加了顺序调节功能。感觉这个基本不需要自己写菜单。以下是我写的菜单:
#
# refind.conf
# Configuration file for the rEFInd boot menu
#
timeout 20
#screensaver 300
hideui editor
#hideui singleuser
#hideui all
icons_dir \EFI\refind\icons
#banner hostname.bmp
#banner mybanner.jpg
#selection_big selection-big.bmp
#selection_small selection-small.bmp
#font myfont.png
#textonly
#textmode 2
#resolution 1024 768
#resolution 1440 900
#resolution 3
enable_touch
enable_mouse
#use_graphics_for osx,linux
showtools shell, bootorder, gdisk, memtest, mok_tool, apple_recovery, windows_recovery, about, hidden_tags, reboot, exit, firmware, fwupdate
scan_driver_dirs \EFI\refind\drivers_x64, \EFI\refind\drivers_ia32
scanfor internal,external,optical,manual
#scan_delay 5
#also_scan_dirs boot,ESP2:EFI/linux/kernels
#dont_scan_volumes "Recovery HD"
#dont_scan_dirs ESP:/EFI/boot,EFI/Dell,EFI/memtest86
#dont_scan_files shim.efi,MokManager.efi
scan_all_linux_kernels false
#fold_linux_kernels false
#extra_kernel_version_strings linux-lts,linux
#max_tags 0
#default_selection 1
#include manual.conf
menuentry "Windows 8/81/10 PE EFI64" {
icon \EFI\refind\icons\os_win8.png
loader \EFI\boot\msbootx64.efi
}
menuentry "Slitaz Linux EFI64" {
icon \EFI\refind\icons\slitaz.png
loader \EFI\boot\bzbootx64.efi
#disabled
}
menuentry "MemTest 7.4 EFI64" {
icon \EFI\refind\icons\tool_fwupdate.png
loader \EFI\boot\membootx64.EFI
}
menuentry "KonBootX64 2.5" {
icon \EFI\refind\icons\os_gentoo.png
loader \EFI\boot\KonBootx64.efi
}
menuentry "EFI Shell 64" {
icon \EFI\refind\icons\os_mandriva.png
loader \EFI\boot\shellx64.efi
}
menuentry "To Grub2 EFI64" {
icon \EFI\refind\icons\os_lubuntu.png
loader \EFI\boot\g2bootx64.efi
}
menuentry "To Xorboot EFI64" {
icon \EFI\refind\icons\os_debian.png
loader \EFI\boot\xorbootx64.efi
}
menuentry "Windows 8/81/10 PE EFI32" {
icon \EFI\refind\icons\os_win.png
loader \EFI\boot\msbootia32.efi
}
menuentry "Slitaz Linux EFI32" {
icon \EFI\refind\icons\slitaz.png
loader \EFI\boot\bzbootia32.efi
disabled
}
menuentry "MemTest 7.4 EFI32" {
icon \EFI\refind\icons\tool_memtest.png
loader \EFI\boot\membootia32.EFI
}
menuentry "KonBootX32 2.5" {
icon \EFI\refind\icons\os_lubuntu.png
loader \EFI\boot\KonBootia32.efi
}
menuentry "EFI Shell 32" {
icon \EFI\refind\icons\os_mandriva.png
loader \EFI\boot\shellia32.efi
}
menuentry "To Grub2 EFI32" {
icon \EFI\refind\icons\os_lubuntu.png
loader \EFI\boot\g2bootx32.efi
}
menuentry "To Xorboot EFI32" {
icon \EFI\refind\icons\os_debian.png
loader \EFI\boot\xorbootx32.efi
}
menuentry "Windows 8/81/10 EFI64" {
icon os_win8.png
loader \EFI\microsoft\boot\bootmgfw.efi
disabled
}
menuentry "Linux" {
icon os_linux.icns
volume KERNELS
loader bzImage-3.3.0-rc7
initrd initrd-3.3.0.img
options "ro root=UUID=5f96cafa-e0a7-4057-b18f-fa709db5b837"
disabled
}
menuentry "My Mac OS X" {
icon os_mac.icns
volume "OS X boot"
loader \System\Library\CoreServices\boot.efi
disabled
}
也有两个疑问:
1、定义了icons_dir \EFI\refind\icons,但菜单中图标还是要写路径,否则找不到;
2、好像不能用变量,32位与64位不知道如何区别显示,而其本身是可以区分32位和64位引导的
|
|