diff options
author | Daniel Baumann <daniel@debian.org> | 2012-06-05 17:40:52 +0200 |
---|---|---|
committer | Daniel Baumann <daniel@debian.org> | 2012-06-05 17:40:52 +0200 |
commit | a5a651f08d2ed1f505b1d5ede6d81462f59bc0a9 (patch) | |
tree | 35220e9997c0f8b65889e9e53ef1caa4c3babfaf /scripts/build/lb_source_checksums | |
parent | 52c602459d0a381b7a919fce8a18df7a807e5531 (diff) | |
download | vyos-live-build-a5a651f08d2ed1f505b1d5ede6d81462f59bc0a9.tar.gz vyos-live-build-a5a651f08d2ed1f505b1d5ede6d81462f59bc0a9.zip |
Updating live-media checksum names for newer live-boot.
Diffstat (limited to 'scripts/build/lb_source_checksums')
-rwxr-xr-x | scripts/build/lb_source_checksums | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/scripts/build/lb_source_checksums b/scripts/build/lb_source_checksums index 4c8ac08a4..f21d7ae44 100755 --- a/scripts/build/lb_source_checksums +++ b/scripts/build/lb_source_checksums @@ -50,33 +50,33 @@ do for CHECKSUM in ${LB_CHECKSUMS} do - Echo_message "Begin creating source ${CHECKSUM}sum.txt..." + CHECKSUMS="$(echo ${CHECKSUM} | tr [a-z] [A-Z])SUMS" + + Echo_message "Begin creating source ${CHECKSUMS}..." # Remove old checksums - if [ -f ${DIRECTORY}/${CHECKSUM}sum.txt ] + if [ -f ${DIRECTORY}/${CHECKSUMS} ] then - rm -f ${DIRECTORY}/${CHECKSUM}sum.txt + rm -f ${DIRECTORY}/${CHECKSUMS} fi # Calculating checksums cd ${DIRECTORY} find . -type f \ - \! -path './md5sum.txt' \ - \! -path './sha1sum.txt' \ - \! -path './sha256sum.txt' \ - -print0 | sort -z | xargs -0 ${CHECKSUM}sum > ../${CHECKSUM}sum.txt + \! -path './*SUMS' \ + -print0 | sort -z | xargs -0 ${CHECKSUM}sum > ../${CHECKSUMS} -cat > ${CHECKSUM}sum.txt << EOF +cat > ${CHECKSUMS} << EOF This file contains the list of ${CHECKSUM} checksums of all files on this medium. You can verify them automatically with the 'integrity-check' boot parameter, -or, manually with: '${CHECKSUM}sum -c ${CHECKSUM}sum.txt'. +or, manually with: '${CHECKSUM}sum -c ${CHECKSUMS}'. EOF - cat ../${CHECKSUM}sum.txt >> ${CHECKSUM}sum.txt - rm -f ../${CHECKSUM}sum.txt + cat ../${CHECKSUMS} >> ${CHECKSUMS} + rm -f ../${CHECKSUMS} cd "${OLDPWD}" done |