From 11739fa9d0dde7d6044e5835666f5d4bf6c6c67d Mon Sep 17 00:00:00 2001 From: longpanda Date: Mon, 3 Apr 2023 21:49:21 +0800 Subject: [PATCH] Fix a bug that Fedora boot error if Ventoy partition is NTFS. (#2333) --- IMG/cpio/ventoy/hook/ventoy-os-lib.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/IMG/cpio/ventoy/hook/ventoy-os-lib.sh b/IMG/cpio/ventoy/hook/ventoy-os-lib.sh index 693a96b7..a52cd746 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 ] +}