mirror of
https://github.com/ventoy/Ventoy.git
synced 2024-12-26 15:15:59 -05:00
Add F4-->Search and boot xorboot
This commit is contained in:
parent
5c6d18fcd4
commit
3c01eec4af
@ -105,6 +105,23 @@ else
|
|||||||
echo "BOOTIA32.EFI NOT found ..."
|
echo "BOOTIA32.EFI NOT found ..."
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
menuentry 'Search and boot xorboot' --class=boot_xorboot --class=F4boot {
|
||||||
|
set VTOY_SEARCH_NO_VTOYEFI=1
|
||||||
|
if search -n -s -f /efi/xorboot/xorboot32.xor; then
|
||||||
|
unset VTOY_SEARCH_NO_VTOYEFI
|
||||||
|
terminal_output console
|
||||||
|
if [ -f /efi/xorboot/bootia32.efi ]; then
|
||||||
|
chainloader /efi/xorboot/bootia32.efi
|
||||||
|
elif [ -f /efi/xorboot/xorboot.efi ]; then
|
||||||
|
chainloader /efi/xorboot/xorboot.efi
|
||||||
|
fi
|
||||||
|
boot
|
||||||
|
else
|
||||||
|
unset VTOY_SEARCH_NO_VTOYEFI
|
||||||
|
echo "xorboot NOT found ..."
|
||||||
|
fi
|
||||||
|
}
|
||||||
elif [ "$grub_cpu" = "arm64" ]; then
|
elif [ "$grub_cpu" = "arm64" ]; then
|
||||||
menuentry 'Search and boot BOOTAA64.EFI' --class=boot_uefi --class=F4boot {
|
menuentry 'Search and boot BOOTAA64.EFI' --class=boot_uefi --class=F4boot {
|
||||||
set VTOY_SEARCH_NO_VTOYEFI=1
|
set VTOY_SEARCH_NO_VTOYEFI=1
|
||||||
@ -131,9 +148,25 @@ else
|
|||||||
echo "BOOTX64.EFI NOT found ..."
|
echo "BOOTX64.EFI NOT found ..."
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
menuentry 'Search and boot xorboot' --class=boot_xorboot --class=F4boot {
|
||||||
|
set VTOY_SEARCH_NO_VTOYEFI=1
|
||||||
|
if search -n -s -f /efi/xorboot/xorboot.xor; then
|
||||||
|
unset VTOY_SEARCH_NO_VTOYEFI
|
||||||
|
terminal_output console
|
||||||
|
if [ -f /efi/xorboot/bootx64.efi ]; then
|
||||||
|
chainloader /efi/xorboot/bootx64.efi
|
||||||
|
elif [ -f /efi/xorboot/xorboot.efi ]; then
|
||||||
|
chainloader /efi/xorboot/xorboot.efi
|
||||||
|
fi
|
||||||
|
boot
|
||||||
|
else
|
||||||
|
unset VTOY_SEARCH_NO_VTOYEFI
|
||||||
|
echo "xorboot NOT found ..."
|
||||||
|
fi
|
||||||
|
}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user