From 4039b54ba308757c4d3ef4845453637819be59d6 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Wed, 17 Feb 2021 22:37:56 +0000 Subject: [cloud] Do not enable serial console on EFI platforms Most EFI firmware builds (including those found on ARM64 instances in AWS EC2) will already send console output to the serial port. Do not enable direct serial console output in EFI builds using CONFIG=cloud. Signed-off-by: Michael Brown --- src/config/cloud/console.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/config/cloud/console.h b/src/config/cloud/console.h index dae18e556..83318dd30 100644 --- a/src/config/cloud/console.h +++ b/src/config/cloud/console.h @@ -18,8 +18,13 @@ * Note that the serial port output from an AWS EC2 virtual machine is * generally available (as the "System Log") only after the instance * has been stopped. + * + * Enable only for non-EFI builds, on the assumption that the standard + * EFI firmware is likely to already be logging to the serial port. */ +#ifndef PLATFORM_efi #define CONSOLE_SERIAL +#endif /* Log to partition on local disk * -- cgit