Skip to content

Commit 39ff72c

Browse files
committed
Add some log lines
1 parent 960be3a commit 39ff72c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packer/linux/conf/bin/bk-mount-instance-storage.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@ then
2424
fi
2525

2626
if [[ "${#devices[@]}" -eq 1 ]] ; then
27+
echo "Mounting instance storage device directly" >&2
2728
logicalname="${devices[0]}"
2829
elif [[ "${#devices[@]}" -gt 1 ]] ; then
30+
echo "Mounting instance storage devices using software RAID" >&2
2931
logicalname=/dev/md0
3032

3133
mdadm \
@@ -42,9 +44,12 @@ fi
4244

4345
# Make an ext4 file system, [-F]orce creation, don’t TRIM at fs creation time
4446
# (-E nodiscard)
47+
echo "Formatting $logicalname as ext4" >&2
4548
mkfs.ext4 -F -E nodiscard "$logicalname" > /dev/null
4649

4750
devicemount=/mnt/ephemeral
51+
52+
echo "Mounting $logicalname to $devicemount" >&2
4853
mkdir -p "$devicemount"
4954
mount -t ext4 -o noatime "$logicalname" "$devicemount"
5055

0 commit comments

Comments
 (0)