Bugfix about debsums (#4363)

This commit is contained in:
hzyitc 2022-10-29 23:51:12 +08:00 committed by GitHub
parent 25357e253f
commit b96ed3e313
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -224,9 +224,8 @@ create_rootfs_cache() {
# stage: check md5 sum of installed packages. Just in case.
display_alert "Checking MD5 sum of installed packages" "debsums" "info"
eval 'LC_ALL=C LANG=C sudo chroot $SDCARD /bin/bash -e -c "dpkg-query -f ${binary:Package} -W | xargs debsums"' \
${PROGRESS_LOG_TO_FILE:+' | tee -a $DEST/${LOG_SUBPATH}/debootstrap.log'} '>/dev/null 2>/dev/null'} ';EVALPIPE=(${PIPESTATUS[@]})'
[[ ${EVALPIPE[0]} -ne 0 ]] && exit_with_error "MD5 sums check of installed packages failed"
chroot $SDCARD /bin/bash -e -c "debsums -s"
[[ $? -ne 0 ]] && exit_with_error "MD5 sums check of installed packages failed"
# Remove packages from packages.uninstall