From 3afe60c1aaea1f12a37d6b810064c59fe87e8078 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Hertzog?= Date: Sat, 24 Feb 2018 17:19:37 +0100 Subject: [PATCH] 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 --- components/0030-verify-checksums | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.1.4