fix: Do not install recommends for ubuntu-cpc minimized project (LP: #2031640)

For minimized images we do not want to install any recommended packages.
We can do this by setting APT::Install-Recommends to false in apt config
or by passing --no-install-recommends to apt-get install.
canary-as-default
Philip Roche 1 year ago
parent 21fa212d12
commit d1ec6f8947

6
debian/changelog vendored

@ -1,3 +1,9 @@
livecd-rootfs (23.10.16) mantic; urgency=medium
* fix: Do not install recommends for ubuntu-cpc minimized project (LP: #2031640)
-- Philip Roche <phil.roche@ubuntu.com> Thu, 17 Aug 2023 11:44:23 +0100
livecd-rootfs (23.10.15) mantic; urgency=medium livecd-rootfs (23.10.15) mantic; urgency=medium
[ Stefan Hammer ] [ Stefan Hammer ]

@ -1106,6 +1106,12 @@ case $PROJECT in
KERNEL_FLAVOURS=virtual KERNEL_FLAVOURS=virtual
if [ "${SUBPROJECT:-}" = minimized ]; then if [ "${SUBPROJECT:-}" = minimized ]; then
# For minimized images we do not want to install any recommended packages.
# We can do this by setting APT::Install-Recommends to false in apt config
# or by passing --no-install-recommends to apt-get install.
# Apt config is set using `APT_OPTIONS` variable in this script.
# This fixes LP: #2031640
APT_OPTIONS="${APT_OPTIONS:+$APT_OPTIONS }--no-install-recommends"
add_package install ubuntu-cloud-minimal add_package install ubuntu-cloud-minimal
else else
add_task install minimal standard cloud-image add_task install minimal standard cloud-image

Loading…
Cancel
Save