aws: Enable serial console by default

Message ID 20210713101131.6021-1-michael.tremer@ipfire.org
State Accepted
Commit 618b9f3a7650b9f9d41dd0b5b34bf0758146e410
Headers
Series aws: Enable serial console by default |

Commit Message

Michael Tremer July 13, 2021, 10:11 a.m. UTC
  AWS for some time now has a serial console feature which is enabled by
default on all systems. The VGA console is not enabled for any new
non-x86 instance types and not interactive.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
---
 src/initscripts/system/partresize | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
  

Patch

diff --git a/src/initscripts/system/partresize b/src/initscripts/system/partresize
index 20044b083..4fa1906d0 100644
--- a/src/initscripts/system/partresize
+++ b/src/initscripts/system/partresize
@@ -45,8 +45,9 @@  case "${1}" in
 				esac
 			fi
 
-			# Enable the serial console on all systems on Azure and Google Compute Platform
-			if running_on_azure || running_on_gcp; then
+			# Enable the serial console on all systems on AWS EC2, Azure
+			# and Google Compute Platform
+			if running_on_ec2 || running_on_azure || running_on_gcp; then
 				scon="on"
 			fi