From f8414bbe68cd88fca887e64c06327d1dcda2c807 Mon Sep 17 00:00:00 2001 From: Igor Pecovnik Date: Thu, 26 Sep 2024 14:04:46 +0200 Subject: [PATCH] MD5 sum: changing default checking as it will fail on base-files Base files are changed during the process. FORCE_CHECK_MD5_PACKAGES=yes turns checking back on. --- lib/functions/rootfs/rootfs-create.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/functions/rootfs/rootfs-create.sh b/lib/functions/rootfs/rootfs-create.sh index efc8550d3f78..c7960213b5ef 100644 --- a/lib/functions/rootfs/rootfs-create.sh +++ b/lib/functions/rootfs/rootfs-create.sh @@ -224,7 +224,7 @@ function create_new_rootfs_cache_via_debootstrap() { # stage: check md5 sum of installed packages. Just in case. @TODO: rpardini: this should also be done when a cache is used, not only when it is created # lets check only for supported targets only unless forced - if [[ "${DISTRIBUTION_STATUS}" == "supported" || "${FORCE_CHECK_MD5_PACKAGES:-"no"}" == "yes" ]]; then + if [[ "${DISTRIBUTION_STATUS}" == "supported" && "${FORCE_CHECK_MD5_PACKAGES:-"no"}" == "yes" ]]; then display_alert "Checking MD5 sum of installed packages" "debsums" "info" declare -g if_error_detail_message="Check MD5 sum of installed packages failed" chroot_sdcard debsums --silent