Skip to content

Commit

Permalink
OcAfterBootCompatLib: Avoid verbose boot overwriting graphics mode
Browse files Browse the repository at this point in the history
  • Loading branch information
mikebeaton committed Feb 16, 2023
1 parent 494733f commit e057d6c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Library/OcAfterBootCompatLib/ServiceOverrides.c
Expand Up @@ -1245,6 +1245,17 @@ OcStartImage (
{
ResizeGpuBars (BootCompat->Settings.ResizeAppleGpuBars, FALSE, BootCompat->Settings.ResizeUsePciRbIo);
}

if (OcCheckArgumentFromEnv (
AppleLoadedImage,
BootCompat->ServicePtrs.GetVariable,
"-v",
L_STR_LEN ("-v"),
NULL
))
{
gST->ConOut->ClearScreen (gST->ConOut);
}
} else if (BootCompat->Settings.SignalAppleOS) {
Status = gBS->LocateProtocol (
&gEfiOSInfoProtocolGuid,
Expand Down

0 comments on commit e057d6c

Please sign in to comment.