fix: prevent FAT directory name munging

Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
This commit is contained in:
Martin Wimpress 2026-01-24 12:39:39 +00:00
parent c96a2484e6
commit 7668519b8d
1 changed files with 1 additions and 1 deletions

View File

@ -304,7 +304,7 @@ function create_macos_disk_with_opencore() {
# mcopy -s recursively copies directories including their contents
# This preserves .kext bundle structure (directories with Contents/Info.plist)
if [ -d "${OPENCORE_DIR}/EFI/BOOT" ]; then
if ! ${MCOPY} -i "${TEMP_DISK}@@${EFI_OFFSET_BYTES}" -s "${OPENCORE_DIR}/EFI/BOOT" ::/EFI/; then
if ! LC_ALL='' ${MCOPY} -i "${TEMP_DISK}@@${EFI_OFFSET_BYTES}" -s "${OPENCORE_DIR}/EFI/BOOT" ::/EFI/; then
echo "ERROR! Failed to copy EFI/BOOT to disk."
rm -f "${TEMP_DISK}"
return 1