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 b7f50a0 commit 73814faCopy full SHA for 73814fa
packer/linux/conf/bin/bk-mount-instance-storage.sh
@@ -50,10 +50,14 @@ mkfs.ext4 -F -E nodiscard "$logicalname" > /dev/null
50
devicemount=/mnt/ephemeral
51
52
echo "Mounting $logicalname to $devicemount" >&2
53
+
54
+fs_type="ext4"
55
+mount_options="defaults,noatime"
56
57
mkdir -p "$devicemount"
-mount -t ext4 -o noatime "$logicalname" "$devicemount"
58
+mount -t "${fs_type}" -o "${mount_options}" "$logicalname" "$devicemount"
59
60
if [ ! -f /etc/fstab.backup ]; then
61
cp -rP /etc/fstab /etc/fstab.backup
- echo "$logicalname $devicemount ext4 defaults 0 0" >> /etc/fstab
62
+ echo "$logicalname $devicemount ${fs_type} ${mount_options} 0 0" >> /etc/fstab
63
fi
0 commit comments