VTOYEFI: keep grub.cfg without paravis_return; patch only grbp.cfg
This commit is contained in:
1 parent
2e9d0ea324
commit
ada702754c
1 file changed
+2
-22
@@ -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
|
||||
|
||||
Reference in new issue
Block a user