Skip to content

Commit

Permalink
amd64 loader: plug hard hang with serial console enabled
Browse files Browse the repository at this point in the history
The hang basically bricks a physical box and it can be recovered
only if you are able to boot from alternate media.  This isn't a
perfect fix, but throw it in before loader experts decide on
proper one.

Submitted by:	whu
Fixes:		927358d

(cherry picked from commit 4358928)
  • Loading branch information
glebius authored and rcmcdonald91 committed Apr 4, 2023
1 parent a9bd321 commit bffe765
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions stand/efi/loader/efiserialio.c
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,8 @@ comc_probe(struct console *sc)
*/
env = getenv("smbios.bios.version");
if (env == NULL || strncmp(env, "Hyper-V", 7) != 0) {
/* Disable being seen as "comconsole". */
comconsole.c_name = "efiserialio";
return;
}
#endif
Expand Down

0 comments on commit bffe765

Please sign in to comment.