]> glassweightruler.freedombox.rocks Git - Ventoy.git/commitdiff
Fix a bug that Fedora boot error if Ventoy partition is NTFS. (#2333)
authorlongpanda <admin@ventoy.net>
Mon, 3 Apr 2023 13:49:21 +0000 (21:49 +0800)
committerlongpanda <admin@ventoy.net>
Mon, 3 Apr 2023 13:49:21 +0000 (21:49 +0800)
IMG/cpio/ventoy/hook/ventoy-os-lib.sh

index 693a96b7a99850538b9cb16aa78b233621aefe0a..a52cd746722a14550c6963b79b6233322f3aa1bf 100644 (file)
@@ -160,9 +160,14 @@ ventoy_rw_iso_scan() {
 }
 
 ventoy_iso_scan_check() {
+    vtCheckOk=0
     if ventoy_is_exfat_part; then
         if ventoy_has_exfat_ko; then
-            ventoy_has_iso_scan
+            if ventoy_has_iso_scan; then
+                vtCheckOk=1
+            fi
         fi
     fi
-}
\ No newline at end of file
+    
+    [ $vtCheckOk -eq 1 ]
+}