[SCM] debian-live branch, master, updated. 1.130.1-3-9-g9605a78
Daniel Baumann
daniel at debian.org
Sat May 31 19:21:19 UTC 2008
The following commit has been merged in the master branch:
commit 9605a7824d041aeb330276567dd23cb1af456057
Author: Michal Suchanek <hramrach at centrum.cz>
Date: Sat May 31 21:18:47 2008 +0200
Workaround loop-aes-utils losetup incompatibility
Pass -r option to losetup when setting up loop device for root image
so that readonly files can be set up as well.
diff --git a/scripts/live b/scripts/live
index 3428cca..0d84533 100755
--- a/scripts/live
+++ b/scripts/live
@@ -498,7 +498,7 @@ get_backing_device ()
{
case "${1}" in
*.squashfs|*.ext2|*.ext3|*.jffs2)
- echo $(setup_loop "${1}" "loop" "/sys/block/loop*" '0' "${LIVE_MEDIA_ENCRYPTION}")
+ echo $(setup_loop "${1}" "loop" "/sys/block/loop*" '0' "${LIVE_MEDIA_ENCRYPTION}" "${2}")
;;
*.dir)
@@ -965,7 +965,7 @@ setup_unionfs ()
rofslist="${image} ${rofslist}"
elif [ -f "${image}" ]
then
- backdev=$(get_backing_device "${image}")
+ backdev=$(get_backing_device "${image}" "-r")
fstype=$(get_fstype "${backdev}")
if [ "${fstype}" = "unknown" ]
diff --git a/scripts/live-helpers b/scripts/live-helpers
index cc73aa3..02c3e55 100644
--- a/scripts/live-helpers
+++ b/scripts/live-helpers
@@ -167,6 +167,7 @@ setup_loop ()
local pattern=${3}
local offset=${4}
local encryption=${5}
+ local readonly=${6}
modprobe -q -b "${module}"
udevsettle
@@ -178,6 +179,11 @@ setup_loop ()
dev=$(sys2dev "${loopdev}")
options=''
+ if [ -n ${readonly} ]
+ then
+ options="${options} -r"
+ fi
+
if [ 0 -lt "${offset}" ]
then
options="${options} -o ${offset}"
--
debian-live
More information about the debian-live-changes
mailing list