]> glassweightruler.freedombox.rocks Git - Ventoy.git/commitdiff
Fixed a bug for ventoy_openwrt.xz check.
authorlongpanda <admin@ventoy.net>
Sat, 10 Jul 2021 01:20:54 +0000 (09:20 +0800)
committerlongpanda <admin@ventoy.net>
Sat, 10 Jul 2021 01:20:54 +0000 (09:20 +0800)
INSTALL/grub/grub.cfg

index a44774744d8b8b087568b9d0b032f317f87bbb7d..5a17682d1f32ed32c50857fb14fa7282972dabf2 100644 (file)
@@ -1740,10 +1740,6 @@ function img_common_menuentry {
         fi
     fi
 
-    if [ -d (vtimghd)/ ]; then
-        loopback -d vtimghd
-    fi
-
     loopback vtimghd "${vtoy_iso_part}${vt_chosen_path}"
     vt_img_sector "${vtoy_iso_part}${vt_chosen_path}"
 
@@ -1808,6 +1804,8 @@ function img_common_menuentry {
         fi
     fi
 
+    loopback -d vtimghd
+
     set root=$vtback_root
     vt_pop_last_entry
     set theme=$vtback_theme