From: longpanda Date: Mon, 3 Apr 2023 13:49:21 +0000 (+0800) Subject: Fix a bug that Fedora boot error if Ventoy partition is NTFS. (#2333) X-Git-Tag: v1.0.91~3 X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/Ventoy.git/commitdiff_plain/11739fa9d0dde7d6044e5835666f5d4bf6c6c67d?ds=sidebyside Fix a bug that Fedora boot error if Ventoy partition is NTFS. (#2333) --- diff --git a/IMG/cpio/ventoy/hook/ventoy-os-lib.sh b/IMG/cpio/ventoy/hook/ventoy-os-lib.sh index 693a96b..a52cd74 100644 --- a/IMG/cpio/ventoy/hook/ventoy-os-lib.sh +++ b/IMG/cpio/ventoy/hook/ventoy-os-lib.sh @@ -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 ] +}