better communicate why we need early packages

This commit is contained in:
georglauterbach 2023-12-04 00:37:16 +01:00
parent f96b8fbcc1
commit cf0bf59698
No known key found for this signature in database
GPG key ID: F367F7C43C118578

View file

@ -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