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
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