From cf0bf59698ef31618c8fb555a826c26694cf6c85 Mon Sep 17 00:00:00 2001 From: georglauterbach <44545919+georglauterbach@users.noreply.github.com> Date: Mon, 4 Dec 2023 00:37:16 +0100 Subject: [PATCH] better communicate why we need early packages --- target/scripts/build/packages.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/target/scripts/build/packages.sh b/target/scripts/build/packages.sh index 207a8d9c..5ac846e4 100644 --- a/target/scripts/build/packages.sh +++ b/target/scripts/build/packages.sh @@ -21,7 +21,15 @@ function _pre_installation_steps() { apt-get "${QUIET}" update _log 'trace' 'Installing packages that are needed early' - apt-get "${QUIET}" install --no-install-recommends apt-utils 2>/dev/null + # add packages usually required by apt to + # - not log unnecessary warnings + # - be able to add PPAs early (e.g., Rspamd) + local EARLY_PACKAGES=( + apt-utils # avoid useless warnings + apt-transport-https ca-certificates curl gnupg # required for adding PPAs + systemd-standalone-sysusers # avoid problems with SA / Amavis (https://github.com/docker-mailserver/docker-mailserver/pull/3403#pullrequestreview-1596689953) + ) + apt-get "${QUIET}" install --no-install-recommends "${EARLY_PACKAGES[@]}" 2>/dev/null _log 'trace' 'Upgrading packages' apt-get "${QUIET}" upgrade