1
0
mirror of https://gitlab.alpinelinux.org/alpine/cloud/tiny-cloud.git synced 2025-12-16 03:42:44 +03:00

* mount nocloud volume readonly

This commit is contained in:
Jake Buchholz Göktürk 2022-07-17 21:43:42 -07:00
parent 32fe9e5488
commit 1db5102fad

View File

@ -54,7 +54,7 @@ _load_nocloud_volume() {
[ "$mounted" ] && break [ "$mounted" ] && break
for label in cidata CIDATA; do for label in cidata CIDATA; do
[ -n "$mounted" ] && break [ -n "$mounted" ] && break
mount -t "$fstype" LABEL="$label" "$mntdir" && mounted=1 mount -o ro -t "$fstype" LABEL="$label" "$mntdir" && mounted=1
done done
done done
if [ -n "$mounted" ]; then if [ -n "$mounted" ]; then