We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 704c2a8 commit e3e4436Copy full SHA for e3e4436
packer/linux/conf/bin/bk-mount-instance-storage.sh
@@ -8,7 +8,6 @@ exec > >(tee -a /var/log/elastic-stack.log | logger -t user-data -s 2>/dev/conso
8
# Mount instance storage if we can
9
# https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/InstanceStorage.html
10
11
-# Move docker root to the ephemeral device
12
if [[ "${BUILDKITE_ENABLE_INSTANCE_STORAGE:-false}" != "true" ]]; then
13
echo "Skipping mounting instance storage"
14
exit 0
@@ -17,8 +16,7 @@ fi
17
16
#shellcheck disable=SC2207
18
devices=($(nvme list | grep "Amazon EC2 NVMe Instance Storage" | cut -f1 -d' '))
19
20
-if [ -z "${devices[*]}" ]
21
-then
+if [ -z "${devices[*]}" ]; then
22
echo "No Instance Storage NVMe drives to mount" >&2
23
24
fi
0 commit comments