This commit is contained in:
Valeria Fadeeva 2023-10-18 12:31:01 +05:00
parent 756f8c43ac
commit e12b14b072
7 changed files with 28 additions and 50 deletions

View File

@ -1,46 +1 @@
menuentry "rEFInd HARD" {
icon /EFI/refind/themes/{THEME}/icons/os_systemd-boot.png
ostype Linux
graphics on
loader /EFI/refind_hard/refind_x64.efi
}
menuentry "Windows 10" {
icon /EFI/refind/themes/{THEME}/icons/os_win10.png
ostype Windows
loader /EFI/ms10/Boot/bootmgfw.efi
}
menuentry "Windows 11" {
icon /EFI/refind/themes/{THEME}/icons/os_win11.png
ostype Windows
loader /EFI/ms11/Microsoft/Boot/bootmgfw.efi
}
menuentry "Memtest86+ from EFI" {
icon /EFI/refind/themes/{THEME}/icons/tool_memtest.png
loader /EFI/memtest/bootx64.efi
}
menuentry "GRUB" {
icon /EFI/refind/themes/{THEME}/icons/os_systemd-boot.png
ostype Linux
graphics on
loader /EFI/boot/grubx64.efi
disabled
}
menuentry "Systemd Boot" {
icon /EFI/refind/themes/{THEME}/icons/os_systemd-boot.png
ostype Linux
graphics on
loader /EFI/systemd/systemd-bootx64.efi
disabled
}
default_selection "linux"

View File

@ -0,0 +1,4 @@
menuentry "Memtest86+ from EFI" {
icon /EFI/refind/themes/{THEME}/icons/tool_memtest.png
loader /EFI/memtest/bootx64.efi
}

View File

@ -0,0 +1,6 @@
menuentry "rEFInd HARD" {
icon /EFI/refind/themes/{THEME}/icons/os_systemd-boot.png
ostype Linux
graphics on
loader /EFI/refind_hard/refind_x64.efi
}

View File

@ -0,0 +1,5 @@
menuentry "Windows 10" {
icon /EFI/refind/themes/{THEME}/icons/os_win10.png
ostype Windows
loader /EFI/ms10/Boot/bootmgfw.efi
}

View File

@ -0,0 +1,5 @@
menuentry "Windows 11" {
icon /EFI/refind/themes/{THEME}/icons/os_win11.png
ostype Windows
loader /EFI/ms11/Microsoft/Boot/bootmgfw.efi
}

View File

@ -6,13 +6,14 @@ enable_touch
enable_mouse
mouse_speed 16
use_graphics_for osx,linux,grub,windows
showtools shutdown, reboot, exit, firmware, fwupdate
scan_driver_dirs /EFI/refind/drivers_x64,EFI/tools/drivers,drivers
showtools exit, shutdown, reboot, firmware, fwupdate, shell, mok_tool, netboot, memtest, gdisk, gptsync, install, bootorder, apple_recovery, csr_rotate, hidden_tags, about
scan_driver_dirs EFI/refind/drivers_x64,EFI/tools/drivers,drivers
#scanfor manual,internal,external,optical
scanfor manual
also_scan_dirs boot,ESP:EFI/Linux,ESP2:EFI/Linux
#scanfor manual
scanfor manual,internal,external,optical
also_scan_dirs ESP:EFI/Linux,ESP2:EFI/Linux
scan_all_linux_kernels true
extra_kernel_version_strings linux-lts,linux-zen,linux-xanmod,linux-hybrid,linux-cachyos-pds,linux-cachyos-tt,linux
extra_kernel_version_strings linux-lts,linux-zen,linux-xanmod,linux-xanmod-anbox,linux-hybrid,linux-cachyos-pds,linux-cachyos-tt,linux
write_systemd_vars true
include manual.conf
include themes/melawy-nier-a2/theme.conf

View File

@ -88,6 +88,8 @@ if [ -d $KERNEL_DIR ]; then
CMDLINE=$(sed -e 's/^[[:space:]]//g' -e 's/[[:space:]]$//g' "${ESP}/EFI/Linux/cmdline.txt")
elif [ -f "/etc/kernel/cmdline" ]; then
CMDLINE=$(sed -e 's/^[[:space:]]//g' -e 's/[[:space:]]$//g' "/etc/kernel/cmdline")
elif [ -f "/boot/refind_linux.conf" ]; then
CMDLINE=$(cat "/boot/refind_linux.conf" | head -n 1 | sed -e 's|"Boot with standard options"||g' | awk '{$1=$1;print}' | sed -e 's/"//g')
else
CMDLINE=$(sed -e 's/^[[:space:]]//g' -e 's/[[:space:]]$//g' -e 's/initrd.*$//g' "/proc/cmdline")
fi