Rename ESP label VTOYEFI → HISOEFI

We are not Ventoy. The ventoy_check_official_device label check is already
bypassed via patch_ventoy_212.py's early return 0, so this is safe.
This commit is contained in:
2026-07-03 15:07:59 +03:00
parent 1931a250b3
commit f282e6560f
2 changed files with 4 additions and 6 deletions
+2 -4
View File
@@ -224,10 +224,8 @@ fi
_progress 6 "Creating 32MB FAT16 ESP image ($(find "$ESP_STAGING" -type f | wc -l) files, $(du -sh "$ESP_STAGING" | cut -f1))..."
dd if=/dev/zero of="$ESP_IMG" bs=1M count=32 2>/dev/null
# FAT16 volume label MUST be "VTOYEFI" (modsrc's GRUB hardcodes
# this check at ventoy_check_official_device). Using "HISOEFI" here
# would fail with error 10 "Partition name is not VTOYEFI".
mkfs.vfat -F 16 -n "VTOYEFI" "$ESP_IMG" >/dev/null 2>&1
# FAT16 volume label "HISOEFI" — we are not Ventoy.
mkfs.vfat -F 16 -n "HISOEFI" "$ESP_IMG" >/dev/null 2>&1
_progress 7 "Populating ESP (single mcopy)..."
# mcopy with a wildcard of subdirs + ::/ does not recurse reliably
+2 -2
View File
@@ -381,7 +381,7 @@ EOF
for i in 0 1 2 3 4 5 6 7 8 9; do
check_umount_disk "$PART2"
if mkfs.vfat -F 16 -n VTOYEFI -s 1 $PART2; then
if mkfs.vfat -F 16 -n HISOEFI -s 1 $PART2; then
echo 'success'
break
else
@@ -504,7 +504,7 @@ format_hiperiso_disk_gpt() {
for i in 0 1 2 3 4 5 6 7 8 9; do
check_umount_disk "$PART2"
if mkfs.vfat -F 16 -n VTOYEFI -s 1 $PART2; then
if mkfs.vfat -F 16 -n HISOEFI -s 1 $PART2; then
echo 'success'
break
else