[SCM] live-boot branch, debian-next, updated. debian/3.0_a37-1-1-g103c89d

Daniel Baumann daniel at debian.org
Wed Jul 25 18:38:47 UTC 2012


The following commit has been merged in the debian-next branch:
commit 103c89d3a5fedcd7287d1a0185949aec9f1e9a61
Author: Daniel Baumann <daniel at debian.org>
Date:   Wed Jul 25 20:39:11 2012 +0200

    Extending verify-checksums parameters to allow specifying custom list of digests.

diff --git a/scripts/boot/3010-verify-checksums b/scripts/boot/3010-verify-checksums
index cc4115d..3649e04 100755
--- a/scripts/boot/3010-verify-checksums
+++ b/scripts/boot/3010-verify-checksums
@@ -7,6 +7,11 @@ Verify_checksums ()
 	for _PARAMETER in ${_CMDLINE}
 	do
 		case "${_PARAMETER}" in
+			live-boot.verify-checksums=*|verify-checksums=*)
+				LIVE_VERIFY_CHECKSUMS="true"
+				LIVE_VERIFY_CHECKSUMS_DIGESTS="${_PARAMETER#*verify-checksums=}"
+				;;
+
 			live-boot.verify-checksums|verify-checksums)
 				LIVE_VERIFY_CHECKSUMS="true"
 				;;
@@ -20,14 +25,14 @@ Verify_checksums ()
 
 	_MOUNTPOINT="${1}"
 
-	_DIGESTS="sha512 sha384 sha256 sha224 sha1 md5"
+	LIVE_VERIFY_CHECKSUMS_DIGESTS="${LIVE_VERIFY_CHECKSUMS_DIGESTS:-sha512 sha384 sha256 sha224 sha1 md5}"
 	_TTY="/dev/tty8"
 
 	log_begin_msg "Verifying checksums"
 
 	cd "${_MOUNTPOINT}"
 
-	for _DIGEST in ${_DIGESTS}
+	for _DIGEST in $(echo ${LIVE_VERIFY_CHECKSUMS_DIGESTS} | sed -e 's|,| |g')
 	do
 		_CHECKSUMS="$(echo ${_DIGEST} | tr [a-z] [A-Z])SUMS"
 

-- 
live-boot



More information about the debian-live-changes mailing list