From: Raphaƫl Hertzog Date: Sat, 24 Feb 2018 16:19:37 +0000 (+0100) Subject: Strip comments from checksums files passed to "shaXsum -c" X-Git-Tag: debian/1%20180328~22 X-Git-Url: http://git.grml.org/?p=live-boot-grml.git;a=commitdiff_plain;h=3afe60c1aaea1f12a37d6b810064c59fe87e8078 Strip comments from checksums files passed to "shaXsum -c" As reported in #796474, the busybox implementation of the various shaXsum command fails when it encounters comment lines that it can't parse. This fixes the 'verify-checksums' boot parameter. Thanks: Andreas Heinlein for the report Closes: #856482 --- diff --git a/components/0030-verify-checksums b/components/0030-verify-checksums index dd1c8f8..4453558 100755 --- a/components/0030-verify-checksums +++ b/components/0030-verify-checksums @@ -51,7 +51,7 @@ Verify_checksums () echo "Checking ${_CHECKSUM}..." > "${_TTY}" # Verify checksums - /bin/${_DIGEST}sum -c "${_CHECKSUM}" < "${_TTY}" > "${_TTY}" + grep -v '^#' "${_CHECKSUM}" | /bin/${_DIGEST}sum -c > "${_TTY}" _RETURN="${?}" # Stop after first verification