From e6ca9a80de2a0ff4f38cf188100ac28b14a8fdb2 Mon Sep 17 00:00:00 2001
From: Joerg Schirottke <master@kanotix.com>
Date: Sat, 30 May 2020 12:00:05 +0200
Subject: [PATCH] Changed FAT-label to "VENTOY_EFI" ("EFI" does not work
 everywhere)

Broken UEFI implementations do not check if the found FAT entry with the name "EFI" is a directory.
As the label is set at creation time to "EFI" the volume label entry is the first one.
The fix is to use a different volume label like "VENTOY_EFI".

Similar fix in KANOTIX:

https://github.com/acritox/kanotix/commit/4b90e4105a4db3e25eef8cb29c027b1a1f0b6d81
---
 INSTALL/tool/ventoy_lib.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/INSTALL/tool/ventoy_lib.sh b/INSTALL/tool/ventoy_lib.sh
index dd9e095..6191594 100644
--- a/INSTALL/tool/ventoy_lib.sh
+++ b/INSTALL/tool/ventoy_lib.sh
@@ -278,7 +278,7 @@ EOF
 
     echo "create efi fat fs $PART2 ..."
     for i in 0 1 2 3 4 5 6 7 8 9; do
-        if mkfs.vfat -F 16 -n EFI $PART2; then
+        if mkfs.vfat -F 16 -n VENTOY_EFI $PART2; then
             echo 'success'
             break
         else
-- 
2.20.1

