aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2017-10-18 14:16:35 +0300
committerTimo Teräs <timo.teras@iki.fi>2017-10-18 15:01:03 +0300
commit2ee0346e5c8f8d9de0909c7e2af950b25e2e925a (patch)
tree1a740ba1c0d20b3a5166749b01665c6a69dec1e4
parentf6b87ef72e276bd2b4214c36dd2195b421838c37 (diff)
downloadalpine-conf-2ee0346e5c8f8d9de0909c7e2af950b25e2e925a.tar.bz2
alpine-conf-2ee0346e5c8f8d9de0909c7e2af950b25e2e925a.tar.xz
setup-bootable: mount iso image read-only
they are read-only by design. this avoids a mount time warning.
-rw-r--r--setup-bootable.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/setup-bootable.in b/setup-bootable.in
index 062313f..ff13321 100644
--- a/setup-bootable.in
+++ b/setup-bootable.in
@@ -47,7 +47,7 @@ on_usb_bus() {
# mount source as loopback and set srcdir
mount_srcdir() {
local srcmnt=${MNT:-/mnt}
- mount -o loop -t iso9660 "$src" $srcmnt \
+ mount -o loop,ro -t iso9660 "$src" $srcmnt \
|| die "Failed to mount loopback $src"
umounts="$srcmnt"
srcdir="$srcmnt"