>>>>> Raphaël Hertzog <hert...@debian.org> writes:

 > reassign 832730 open-infrastructure-system-boot thanks

        Isn’t the bug now fixed there?

        I’m unsure of what difference there’s supposed to be between
        live-boot and open-infrastructure-system-boot, but just in case
        anyone’s interested, it was easy to port the option’s support
        from the latter to the former.

        (Perhaps a clone of this bug should be made for the other
        package?)

-- 
FSF associate member #7257  http://am-1.org/~ivan/    7D17 4A59 6A21 3D97 6DDB
--- lib/live/boot/-9990-cmdline-old.~2017-08-04~	2017-08-03 09:44:03.156091782 +0000
+++ lib/live/boot/9990-cmdline-old	2017-08-04 07:17:55.647244608 +0000
@@ -100,6 +100,11 @@
 				export LIVE_MEDIA
 				;;
 
+			live-media-mount-opts=*)
+				LIVE_MEDIA_MOUNT_OPTS="${_PARAMETER#*=}"
+				export LIVE_MEDIA_MOUNT_OPTS
+				;;
+
 			live-media-encryption=*|encryption=*)
 				LIVE_MEDIA_ENCRYPTION="${_PARAMETER#*=}"
 				export LIVE_MEDIA_ENCRYPTION
--- lib/live/boot/-9990-misc-helpers.sh.~2017-08-04~	2017-08-03 09:43:55.115584744 +0000
+++ lib/live/boot/9990-misc-helpers.sh	2017-08-04 06:53:25.799726442 +0000
@@ -98,6 +98,7 @@
 	sysdev="${1}"
 	devname="${2}"
 	skip_uuid_check="${3}"
+	mount_opts="${LIVE_MEDIA_MOUNT_OPTS:-ro,noatime}"
 
 	# support for fromiso=.../isofrom=....
 	if [ -n "$FROMISO" ]
@@ -195,7 +196,7 @@
 	then
 		devuid=$(blkid -o value -s UUID "$devname")
 		[ -n "$devuid" ] && grep -qs "\<$devuid\>" /var/lib/live/boot/devices-already-tried-to-mount && continue
-		mount -t ${fstype} -o ro,noatime "${devname}" ${mountpoint} || continue
+		mount -t ${fstype} -o "${mount_opts}" "${devname}" ${mountpoint} || continue
 		[ -n "$devuid" ] && echo "$devuid" >> /var/lib/live/boot/devices-already-tried-to-mount
 
 		if [ -n "${FINDISO}" ]
@@ -204,10 +205,10 @@
 			then
 				umount ${mountpoint}
 				mkdir -p /live/findiso
-				mount -t ${fstype} -o ro,noatime "${devname}" /live/findiso
+				mount -t ${fstype} -o "${mount_opts}" "${devname}" /live/findiso
 				loopdevname=$(setup_loop "/live/findiso/${FINDISO}" "loop" "/sys/block/loop*" 0 "")
 				devname="${loopdevname}"
-				mount -t iso9660 -o ro,noatime "${devname}" ${mountpoint}
+				mount -t iso9660 -o "${mount_opts}" "${devname}" ${mountpoint}
 			else
 				umount ${mountpoint}
 			fi

Reply via email to