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 960be3a commit 39ff72cCopy full SHA for 39ff72c
packer/linux/conf/bin/bk-mount-instance-storage.sh
@@ -24,8 +24,10 @@ then
24
fi
25
26
if [[ "${#devices[@]}" -eq 1 ]] ; then
27
+ echo "Mounting instance storage device directly" >&2
28
logicalname="${devices[0]}"
29
elif [[ "${#devices[@]}" -gt 1 ]] ; then
30
+ echo "Mounting instance storage devices using software RAID" >&2
31
logicalname=/dev/md0
32
33
mdadm \
@@ -42,9 +44,12 @@ fi
42
44
43
45
# Make an ext4 file system, [-F]orce creation, don’t TRIM at fs creation time
46
# (-E nodiscard)
47
+echo "Formatting $logicalname as ext4" >&2
48
mkfs.ext4 -F -E nodiscard "$logicalname" > /dev/null
49
50
devicemount=/mnt/ephemeral
51
+
52
+echo "Mounting $logicalname to $devicemount" >&2
53
mkdir -p "$devicemount"
54
mount -t ext4 -o noatime "$logicalname" "$devicemount"
55
0 commit comments