summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2012-06-05 17:40:52 +0200
committerDaniel Baumann <daniel@debian.org>2012-06-05 17:40:52 +0200
commita5a651f08d2ed1f505b1d5ede6d81462f59bc0a9 (patch)
tree35220e9997c0f8b65889e9e53ef1caa4c3babfaf /scripts
parent52c602459d0a381b7a919fce8a18df7a807e5531 (diff)
downloadvyos-live-build-a5a651f08d2ed1f505b1d5ede6d81462f59bc0a9.tar.gz
vyos-live-build-a5a651f08d2ed1f505b1d5ede6d81462f59bc0a9.zip
Updating live-media checksum names for newer live-boot.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/build/lb_binary_checksums22
-rwxr-xr-xscripts/build/lb_source_checksums22
2 files changed, 22 insertions, 22 deletions
diff --git a/scripts/build/lb_binary_checksums b/scripts/build/lb_binary_checksums
index c23fe454d..b5ba6b957 100755
--- a/scripts/build/lb_binary_checksums
+++ b/scripts/build/lb_binary_checksums
@@ -43,12 +43,14 @@ Create_lockfile .lock
for CHECKSUM in ${LB_CHECKSUMS}
do
- Echo_message "Begin creating binary ${CHECKSUM}sum.txt..."
+ CHECKSUMS="$(echo ${CHECKSUM} | tr [a-z] [A-Z])SUMS"
+
+ Echo_message "Begin creating binary ${CHECKSUMS}..."
# Remove old checksums
- if [ -f binary/${CHECKSUM}sum.txt ]
+ if [ -f binary/${CHECKSUMS} ]
then
- rm -f binary/${CHECKSUM}sum.txt
+ rm -f binary/${CHECKSUMS}
fi
# Calculating checksums
@@ -57,22 +59,20 @@ do
\! -path './isolinux/isolinux.bin' \
\! -path './boot/boot.bin' \
\! -path './boot/grub/stage2_eltorito' \
- \! -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
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