From ada702754cf2c3221921798566d245eb8ebe7357 Mon Sep 17 00:00:00 2001 From: Paravis Date: Fri, 27 Nov 2026 18:15:07 +0300 Subject: [PATCH] VTOYEFI: keep grub.cfg without paravis_return; patch only grbp.cfg --- build-scripts/config/VTOYEFI/grub.cfg | 24 ++---------------------- 1 file changed, 2 insertions(+), 22 deletions(-) diff --git a/build-scripts/config/VTOYEFI/grub.cfg b/build-scripts/config/VTOYEFI/grub.cfg index 5ddadcc..5b9e829 100644 --- a/build-scripts/config/VTOYEFI/grub.cfg +++ b/build-scripts/config/VTOYEFI/grub.cfg @@ -97,24 +97,6 @@ function ventoy_localboot { configfile $prefix/localboot.cfg } -function paravis_return { - if [ "$grub_platform" = "efi" ]; then - set pvroot= - search --no-floppy --file --set=pvroot /efi/Paravis/Boot/grub2/grub.cfg - if [ -z "$pvroot" ]; then - echo "Paravis Flash not found" - return - fi - if [ "$grub_cpu" = "x86_64" ]; then - chainloader ($pvroot)/efi/BOOT/bootx64.efi - else - chainloader ($pvroot)/efi/BOOT/bootia32.efi - fi - else - chainloader (${vtoydev})+1 - fi - boot -} function ventoy_ext_menu { if [ -e $vt_plugin_path/ISO/Ventoy/ventoy_grub.cfg ]; then @@ -2798,6 +2780,8 @@ export VTOY_LANG_CMD set ventoy_img_count=0 vt_list_img $vtoy_iso_part ventoy_img_count + + #Main menu if [ $ventoy_img_count -gt 0 ]; then if [ $VTOY_DEFAULT_MENU_MODE -eq 0 ]; then @@ -2820,11 +2804,7 @@ else fi -menuentry "Возврат в главное меню Paravis Flash" --id="paravis_return" --class="vtoyret" { - paravis_return -} -set default="paravis_return" #special VTOY_DEFAULT_IMAGE process if [ -n "$VTOY_DEFAULT_IMAGE" ]; then