From fe0a034ec7d60351c1600de76eb6e28df6e59882 Mon Sep 17 00:00:00 2001 From: Michael Beaver Date: Wed, 29 Jan 2020 18:28:21 -0600 Subject: [PATCH] Add --no-install-recommends to apt install This change adds the --no-install-recommends flag to the apt-get install command portion of _apt.sh.tpl. This will modify Divingbell to only install direct dependencies of packages instead of following the default apt behavior, which is to also install recommended packages Change-Id: I118a72e1e591101b0e2878e088e9fbaa96067d2c --- divingbell/templates/bin/_apt.sh.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/divingbell/templates/bin/_apt.sh.tpl b/divingbell/templates/bin/_apt.sh.tpl index d28863c..b6cb5b9 100644 --- a/divingbell/templates/bin/_apt.sh.tpl +++ b/divingbell/templates/bin/_apt.sh.tpl @@ -132,7 +132,7 @@ REQUESTED_PACKAGES="$REQUESTED_PACKAGES {{$pkg_name}}" {{- end }} set -x # Run this in case some package installation was interrupted -DEBIAN_FRONTEND=noninteractive apt-get install -y -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold {{- if .Values.conf.apt.allow_downgrade }} "--allow-downgrades" {{ end }}{{- if .repo }} -t {{ .repo }}{{ end }} $INSTALLED_THIS_TIME +DEBIAN_FRONTEND=noninteractive apt-get install --no-install-recommends -y -o Dpkg::Options::=--force-confdef -o Dpkg::Options::=--force-confold {{- if .Values.conf.apt.allow_downgrade }} "--allow-downgrades" {{ end }}{{- if .repo }} -t {{ .repo }}{{ end }} $INSTALLED_THIS_TIME {{- end }} # Perform package upgrades