[iso] fix UEFI:NTFS not being installed for ISOs that have a >4GB file, when MBR is selected

* GPT was fine but MBR led to the creation of EFI bootable images using NTFS as the file
  system, but without the UEFI:NTFS partition (e.g. UwUntu-22.10-desktop-amd64.iso).
This commit is contained in:
Pete Batard 2022-11-07 17:45:42 +00:00
parent 3cd6d18ef8
commit 4cfe1c9947
No known key found for this signature in database
GPG key ID: 38E0CF5E69EDD671
2 changed files with 6 additions and 6 deletions

View file

@ -1451,7 +1451,7 @@ DWORD WINAPI FormatThread(void* param)
extra_partitions = XP_ESP | XP_MSR;
else if ( ((fs_type == FS_NTFS) || (fs_type == FS_EXFAT)) &&
((boot_type == BT_UEFI_NTFS) || ((boot_type == BT_IMAGE) && IS_EFI_BOOTABLE(img_report) &&
((target_type == TT_UEFI) || (windows_to_go) || (allow_dual_uefi_bios)))) )
((target_type == TT_UEFI) || (windows_to_go) || (allow_dual_uefi_bios) || (img_report.has_4GB_file)))) )
extra_partitions = XP_UEFI_NTFS;
else if ((boot_type == BT_IMAGE) && !write_as_image && HAS_PERSISTENCE(img_report) && persistence_size)
extra_partitions = XP_CASPER;