Add support for --update-checksums in early bootstrap

This allows creating *.checksums files instead of checking against
them when UPDATE_CHECKSUMS is set to True in bootstrap.cfg.

The checksums are also copied to /usr/src so they can be accessed
easily after the bootstrap completes.
This commit is contained in:
Dor Askayo 2022-05-20 17:55:35 +03:00
parent 18fa642100
commit 653f31b59f
14 changed files with 187 additions and 20 deletions

View file

@ -34,4 +34,11 @@ chmod 755 ${prefix}/bin/patch
cd ../..
# Checksums
sha256sum -c ${pkg}.checksums
if match x${UPDATE_CHECKSUMS} xTrue; then
sha256sum -o ${pkg}.checksums \
/usr/bin/patch
cp ${pkg}.checksums ${srcdir}
else
sha256sum -c ${pkg}.checksums
fi