diff --git a/modules/bastion/templates/user-data.sh b/modules/bastion/templates/user-data.sh index 741a38eca..3665a4aed 100644 --- a/modules/bastion/templates/user-data.sh +++ b/modules/bastion/templates/user-data.sh @@ -1,13 +1,5 @@ #!/bin/bash -# Mount additional volume -echo "Mounting additional volume..." -while [ ! -b $(readlink -f /dev/sdh) ]; do echo 'waiting for device /dev/sdh'; sleep 5 ; done -blkid $(readlink -f /dev/sdh) || mkfs -t ext4 $(readlink -f /dev/sdh) -e2label $(readlink -f /dev/sdh) sdh-volume -grep -q ^LABEL=sdh-volume /etc/fstab || echo 'LABEL=sdh-volume /mnt ext4 defaults' >> /etc/fstab -grep -q \"^$(readlink -f /dev/sdh) /mnt \" /proc/mounts || mount /mnt - # Install docker echo "Installing docker..." amazon-linux-extras install docker