OcBootManagementLib: Fix hiding Time Machine entries with HideAuxiliary

This commit is contained in:
vit9696 2020-05-12 22:44:52 +03:00
parent 26d8862b9b
commit 30aad505f1

View File

@ -379,6 +379,14 @@ AddBootEntryOnFileSystem (
return EFI_UNSUPPORTED;
}
//
// Do not add Time Machine when not requested.
//
if (BootContext->PickerContext->HideAuxiliary && EntryType == OC_BOOT_APPLE_TIME_MACHINE) {
DEBUG ((DEBUG_INFO, "OCB: Discarding time machine entry due to auxiliary\n"));
return EFI_UNSUPPORTED;
}
//
// Skip OpenCore bootloaders on own entry.
// We do not waste time doing this for other entries.