aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Crute <mike@crute.us>2017-12-26 04:06:59 +0000
committerMike Crute <mike@crute.us>2017-12-26 04:06:59 +0000
commit73f4135f984823a93a848c72f6fe7b5cf802db7a (patch)
tree784eb3ad59e48eea8828b9418137fe8dae01687b
parent6fbb4d8ead5762ed69b716eae70cbd23a4c77b5c (diff)
downloadalpine-ec2-ami-73f4135f984823a93a848c72f6fe7b5cf802db7a.tar.bz2
alpine-ec2-ami-73f4135f984823a93a848c72f6fe7b5cf802db7a.tar.xz
alpine-ec2-ami-73f4135f984823a93a848c72f6fe7b5cf802db7a.zip
Log boot output to console
-rwxr-xr-xmake_ami.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/make_ami.sh b/make_ami.sh
index 6ad4b0d..974fc9e 100755
--- a/make_ami.sh
+++ b/make_ami.sh
@@ -179,8 +179,13 @@ setup_extlinux() {
179 # Enable ext4 because the root device is formatted ext4 179 # Enable ext4 because the root device is formatted ext4
180 # 180 #
181 # Shorten timeout because EC2 has no way to interact with instance console 181 # Shorten timeout because EC2 has no way to interact with instance console
182 #
183 # ttyS0 is the target for EC2s "Get System Log" feature whereas tty0 is the
184 # target for EC2s "Get Instance Screenshot" feature. Enabling the serial
185 # port early in extlinux gives the most complete output in the system log.
182 sed -Ei -e "s|^[# ]*(root)=.*|\1=LABEL=/|" \ 186 sed -Ei -e "s|^[# ]*(root)=.*|\1=LABEL=/|" \
183 -e "s|^[# ]*(default_kernel_opts)=.*|\1=|" \ 187 -e "s|^[# ]*(default_kernel_opts)=.*|\1=\"console=ttyS0 console=tty0\"|" \
188 -e "s|^[# ]*(serial_port)=.*|\1=ttyS0|" \
184 -e "s|^[# ]*(modules)=.*|\1=sd-mod,usb-storage,ext4|" \ 189 -e "s|^[# ]*(modules)=.*|\1=sd-mod,usb-storage,ext4|" \
185 -e "s|^[# ]*(default)=.*|\1=hardened|" \ 190 -e "s|^[# ]*(default)=.*|\1=hardened|" \
186 -e "s|^[# ]*(timeout)=.*|\1=1|" \ 191 -e "s|^[# ]*(timeout)=.*|\1=1|" \