From bffe765d8070428e5099c29c47d24b3a666814f1 Mon Sep 17 00:00:00 2001 From: Gleb Smirnoff Date: Fri, 31 Mar 2023 11:19:25 -0700 Subject: [PATCH] amd64 loader: plug hard hang with serial console enabled 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: 927358dd98cb902160093e0dc0bac002d6b43858 (cherry picked from commit 4358928e235c1e188ad6b4650d78bcceb225b909) --- stand/efi/loader/efiserialio.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stand/efi/loader/efiserialio.c b/stand/efi/loader/efiserialio.c index 5fbc700f6ac2d..0f37ef8b87dd7 100644 --- a/stand/efi/loader/efiserialio.c +++ b/stand/efi/loader/efiserialio.c @@ -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