Skip to content

Commit

Permalink
Disable reading config.plist (and Boot timestamp message).
Browse files Browse the repository at this point in the history
  • Loading branch information
jief666 committed Jan 2, 2024
1 parent 4e0111c commit 3361a58
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Library/OcMainLib/OpenCoreMisc.c
Original file line number Diff line number Diff line change
Expand Up @@ -470,13 +470,16 @@ OcMiscEarlyInit (
)
{
EFI_STATUS Status;
#ifndef CLOVER_BUILD
CHAR8 *ConfigData;
UINT32 ConfigDataSize;
EFI_TIME BootTime;
#endif
CONST CHAR8 *AsciiVault;
OCS_VAULT_MODE Vault;
UINTN PciDeviceInfoSize;

#ifndef CLOVER_BUILD
ConfigData = OcStorageReadFileUnicode (
Storage,
OPEN_CORE_CONFIG_PATH,
Expand All @@ -499,6 +502,7 @@ OcMiscEarlyInit (
CpuDeadLoop ();
return EFI_UNSUPPORTED; ///< Should be unreachable.
}
#endif

Status = OcShimRetainProtocol (Config->Uefi.Quirks.ShimRetainProtocol);
if (EFI_ERROR (Status)) {
Expand Down Expand Up @@ -593,7 +597,7 @@ OcMiscEarlyInit (
Storage->HasVault,
VaultKey != NULL
));

#ifndef CLOVER_BUILD
Status = gRT->GetTime (&BootTime, NULL);
if (!EFI_ERROR (Status)) {
DEBUG ((
Expand All @@ -613,7 +617,7 @@ OcMiscEarlyInit (
Status
));
}

#endif
return EFI_SUCCESS;
}

Expand Down

0 comments on commit 3361a58

Please sign in to comment.