[SCM] live-boot branch, debian-old-2.0, updated. debian/2.0.5-1-1-g56dbf64

Daniel Baumann daniel at debian.org
Sat Sep 25 20:43:49 UTC 2010


The following commit has been merged in the debian-old-2.0 branch:
commit 56dbf64940d862aee022347dc383f03b58fdea47
Author: intrigeri <intrigeri at boum.org>
Date:   Sat Sep 25 22:43:33 2010 +0200

    Fixing find_snap to take its second argument into account.

diff --git a/scripts/live b/scripts/live
index 0e1b2f4..f257218 100755
--- a/scripts/live
+++ b/scripts/live
@@ -944,16 +944,17 @@ find_snap ()
 {
 	# Look for ${snap_label}.* in block devices
 	snap_label="${1}"
+	black_listed_devices="${2}"
 
 	if [ "${PERSISTENT}" != "nofiles" ]
 	then
 		# search for image files
-		snapdata=$(find_files "${PERSISTENT_PATH}${snap_label}.squashfs ${PERSISTENT_PATH}${snap_label}.cpio.gz ${PERSISTENT_PATH}${snap_label}.ext2 ${PERSISTENT_PATH}${snap_label}.ext3 ${PERSISTENT_PATH}${snap_label}.ext4 ${PERSISTENT_PATH}${snap_label}.jffs2")
+		snapdata=$(find_files "${PERSISTENT_PATH}${snap_label}.squashfs ${PERSISTENT_PATH}${snap_label}.cpio.gz ${PERSISTENT_PATH}${snap_label}.ext2 ${PERSISTENT_PATH}${snap_label}.ext3 ${PERSISTENT_PATH}${snap_label}.ext4 ${PERSISTENT_PATH}${snap_label}.jffs2" "${black_listed_devices}")
 	fi
 
 	if [ -z "${snapdata}" ]
 	then
-		snapdata=$(find_cow_device "${snap_label}")
+		snapdata=$(find_cow_device "${snap_label}" "${black_listed_devices}")
 	fi
 	echo "${snapdata}"
 }

-- 
live-boot



More information about the debian-live-changes mailing list