From 6dbdc2327206c002540093b5a8b9a88f43d00858 Mon Sep 17 00:00:00 2001 From: Mike Crute Date: Tue, 26 Dec 2017 04:07:38 +0000 Subject: Disable getty allocations --- make_ami.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/make_ami.sh b/make_ami.sh index ff3a04d..743827c 100755 --- a/make_ami.sh +++ b/make_ami.sh @@ -151,6 +151,11 @@ install_core_packages() { tzdata chroot "$target" apk --no-cache add --no-scripts syslinux + + # Disable starting getty for physical ttys because they're all inaccessible + # anyhow. With this configuration boot messages will still display in the + # EC2 console. + sed -Ei '/^tty\d/s/^/#/' /etc/inittab } create_initfs() { -- cgit v1.2.3