Commit 2ee0346e authored by Timo Teräs's avatar Timo Teräs
Browse files

setup-bootable: mount iso image read-only

they are read-only by design. this avoids a mount time warning.
parent f6b87ef7
...@@ -47,7 +47,7 @@ on_usb_bus() { ...@@ -47,7 +47,7 @@ on_usb_bus() {
# mount source as loopback and set srcdir # mount source as loopback and set srcdir
mount_srcdir() { mount_srcdir() {
local srcmnt=${MNT:-/mnt} 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" || die "Failed to mount loopback $src"
umounts="$srcmnt" umounts="$srcmnt"
srcdir="$srcmnt" srcdir="$srcmnt"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment