Skip to content

Commit

Permalink
fix: bastion userdata volume mount (#917)
Browse files Browse the repository at this point in the history
  • Loading branch information
milldr committed Dec 5, 2023
1 parent 2f3b95d commit 05874fd
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions modules/bastion/templates/user-data.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 05874fd

Please sign in to comment.