Bug#856482: [live-build] Comments in checksum fails make the check fail
Package: live-build
Version: 1:20170213
Severity: normal
Tags: patch
--- Please enter the report below this line. ---
live-build generates a checksum file with seven lines of comments at the
start, which explain what this file is for.
While this works with "normal" shaXsum utilities, the script used to
check the checksums in live-boot (when booted with the
'verify-checksums' parameter) uses a busybox implementation of shaXsum
which obviously cannot deal with comments and always complains about 7
failures.
Removing the comment from the checksum file solves the problem.
--- System information. ---
Architecture: amd64
Kernel: Linux 4.9.0-0.bpo.1-amd64
--- Package information. ---
Depends (Version) | Installed
==========================-+-===========
debootstrap | 1.0.86~bpo8+1
Recommends (Version) | Installed
===============================-+-===========
apt-utils | 1.0.9.8.4
cpio | 2.11+dfsg-4.1+deb8u1
live-boot-doc | 1:20160511~bpo8+1
live-config-doc | 4.0.4-1
live-manual-html | 1:4.0.1-1
OR live-manual |
wget | 1.16-1+deb8u1
Suggests (Version) | Installed
=============================-+-===========
debian-keyring | 2015.04.10
gpgv | 1.4.18-7+deb8u3
--- a/scripts/build/binary_checksums 2017-03-01 14:35:49.270545671 +0100
+++ b/scripts/build/binary_checksums 2017-03-01 14:36:36.271418980 +0100
@@ -71,16 +71,6 @@
\! -path './*sum.txt' \
-print0 | sort -z | xargs -0 ${CHECKSUM}sum > ../${CHECKSUMS}
-cat > ${CHECKSUMS} << EOF
-## This file contains the list of ${CHECKSUM} checksums of all files on this
-## medium.
-##
-## You can verify them automatically with the 'verify-checksums' boot parameter,
-## or, manually with: '${CHECKSUM}sum -c ${CHECKSUMS}'.
-##
-##
-EOF
-
cat ../${CHECKSUMS} >> ${CHECKSUMS}
rm -f ../${CHECKSUMS}
Reply to: