diff options
author | Mike Crute <mike@crute.us> | 2017-12-26 04:07:38 +0000 |
---|---|---|
committer | Mike Crute <mike@crute.us> | 2017-12-26 04:07:38 +0000 |
commit | 6dbdc2327206c002540093b5a8b9a88f43d00858 (patch) | |
tree | fb518f8317df676e2810ee18d2228adc04471252 | |
parent | 31163ccb52528cbb935bd571484a0025057ac487 (diff) | |
download | alpine-ec2-ami-6dbdc2327206c002540093b5a8b9a88f43d00858.tar.bz2 alpine-ec2-ami-6dbdc2327206c002540093b5a8b9a88f43d00858.tar.xz alpine-ec2-ami-6dbdc2327206c002540093b5a8b9a88f43d00858.zip |
Disable getty allocations
-rwxr-xr-x | make_ami.sh | 5 |
1 files changed, 5 insertions, 0 deletions
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() { | |||
151 | tzdata | 151 | tzdata |
152 | 152 | ||
153 | chroot "$target" apk --no-cache add --no-scripts syslinux | 153 | chroot "$target" apk --no-cache add --no-scripts syslinux |
154 | |||
155 | # Disable starting getty for physical ttys because they're all inaccessible | ||
156 | # anyhow. With this configuration boot messages will still display in the | ||
157 | # EC2 console. | ||
158 | sed -Ei '/^tty\d/s/^/#/' /etc/inittab | ||
154 | } | 159 | } |
155 | 160 | ||
156 | create_initfs() { | 161 | create_initfs() { |