From 7cb6b1ac35d7d40abe7aa373f4b7b3853ac8ede0 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Tue, 13 May 2025 16:46:18 -0400 Subject: [PATCH] Fix autoconsole error on SPCR-free EFI implementations --- confluent_osdeploy/common/profile/scripts/autoconsole | 2 ++ 1 file changed, 2 insertions(+) diff --git a/confluent_osdeploy/common/profile/scripts/autoconsole b/confluent_osdeploy/common/profile/scripts/autoconsole index b37e1df6..421c2e8a 100644 --- a/confluent_osdeploy/common/profile/scripts/autoconsole +++ b/confluent_osdeploy/common/profile/scripts/autoconsole @@ -77,6 +77,8 @@ def fixup_ubuntu_grub_serial(): def get_serial_config(): if not os.path.exists('/sys/firmware/efi'): return None + if not os.path.exists('/sys/firmware/acpi/tables/SPCR'): + return None spcr = open("/sys/firmware/acpi/tables/SPCR", "rb") spcr = bytearray(spcr.read()) if spcr[8] != 2 or spcr[36] != 0 or spcr[40] != 1: