summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorRoland Clobus <rclobus@rclobus.nl>2021-03-21 12:32:54 +0100
committerRoland Clobus <rclobus@rclobus.nl>2021-03-21 12:32:54 +0100
commit745b2be876b50b5033c7d2514facb5b71799c9ae (patch)
tree4ed7a6421c11d037f6f890560f66ea071f471a57 /scripts
parent9524705c34811c56f35ea005791157e867845324 (diff)
downloadvyos-live-build-745b2be876b50b5033c7d2514facb5b71799c9ae.tar.gz
vyos-live-build-745b2be876b50b5033c7d2514facb5b71799c9ae.zip
Fixed handling of checksums in combination with the d-i installer.
1) lb config rejected multiple checksum types 2) When using the installer, cdrom-checker requires a md5 checksum file, use 'Check the integrity of the installation media' in the installer 3) The comments in the first lines of the checksum files caused cdrom-checker to fail the integrity of the image
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/build/binary_checksums19
-rwxr-xr-xscripts/build/source_checksums19
2 files changed, 14 insertions, 24 deletions
diff --git a/scripts/build/binary_checksums b/scripts/build/binary_checksums
index 3d79aab91..75c6fe770 100755
--- a/scripts/build/binary_checksums
+++ b/scripts/build/binary_checksums
@@ -55,20 +55,15 @@ do
\! -path './boot/grub/stage2_eltorito' \
\! -path './*SUMS' \
\! -path './*sum.txt' \
- -print0 | sort -z | xargs -0 ${CHECKSUM}sum > ../${CHECKSUMS}
+ \! -path './*sum.README' \
+ -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 > ${CHECKSUM}sum.README << EOF
+The file ${CHECKSUMS} contains the ${CHECKSUM} checksums of all files on this medium.
- cat ../${CHECKSUMS} >> ${CHECKSUMS}
- rm -f ../${CHECKSUMS}
+You can verify them automatically with the 'verify-checksums' boot parameter,
+or, manually with: '${CHECKSUM}sum -c ${CHECKSUMS}'.
+EOF
cd "${OLDPWD}"
done
diff --git a/scripts/build/source_checksums b/scripts/build/source_checksums
index fe289e396..db23aa867 100755
--- a/scripts/build/source_checksums
+++ b/scripts/build/source_checksums
@@ -59,20 +59,15 @@ do
find . -type f \
\! -path './*SUMS' \
\! -path './*sum.txt' \
- -print0 | sort -z | xargs -0 ${CHECKSUM}sum > ../${CHECKSUMS}
+ \! -path './*sum.README' \
+ -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 > ${CHECKSUM}sum.README << EOF
+The file ${CHECKSUMS} contains the ${CHECKSUM} checksums of all files on this medium.
- cat ../${CHECKSUMS} >> ${CHECKSUMS}
- rm -f ../${CHECKSUMS}
+You can verify them automatically with the 'verify-checksums' boot parameter,
+or, manually with: '${CHECKSUM}sum -c ${CHECKSUMS}'.
+EOF
cd "${OLDPWD}"
done