]> code.delx.au - refind/blobdiff - refind/lib.c
Remove exFAT partitions from boot list under OS X unless they contain
[refind] / refind / lib.c
index ee8acd99a274814d9f2e5e44289db94f4bc0d846..4989076e88bad395a9a4efaf8d4886eac82c390d 100644 (file)
@@ -510,7 +510,7 @@ static VOID ScanVolumeBootcode(REFIT_VOLUME *Volume, BOOLEAN *Bootable)
     if (!EFI_ERROR(Status)) {
 
         Volume->FSType = IdentifyFilesystemType(Buffer, SAMPLE_SIZE);
-        if (*((UINT16 *)(Buffer + 510)) == 0xaa55 && Buffer[0] != 0) {
+        if ((*((UINT16 *)(Buffer + 510)) == 0xaa55 && Buffer[0] != 0) && (FindMem(Buffer, 512, "EXFAT", 5) == -1)) {
             *Bootable = TRUE;
             Volume->HasBootCode = TRUE;
         }