This commit is contained in:
Valeria Fadeeva 2023-10-14 00:23:45 +05:00
parent d8c665cf2a
commit 49e2004055
2 changed files with 29 additions and 2 deletions

View File

@ -5,12 +5,21 @@ menuentry "rEFInd HARD" {
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/Boot/bootmgfw.efi
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

View File

@ -11,7 +11,25 @@ check_root
ESP_PATH=$(bootctl --print-esp-path)
echo $ESP_PATH
KERNEL_DIR="$ESP_PATH/EFI/Linux"
if [ -z "$ESP_PATH" ]; then
exit 1
else
if [ ! -d "${ESP_PATH}/EFI/Linux" ]; then
if [ -d "${ESP_PATH}/EFI/linux" ]; then
KERNEL_DIR="${ESP_PATH}/EFI/linux"
fi
else
KERNEL_DIR="${ESP_PATH}/EFI/Linux"
fi
if [ -z "$KERNEL_DIR" ]; then
mkdir -p "${ESP_PATH}/EFI/Linux"
KERNEL_DIR="${ESP_PATH}/EFI/linux"
fi
fi
echo $KERNEL_DIR
theme=$(cat "$ESP_PATH/EFI/refind/refind.conf" | grep themes | cut -d"/" -f2)