From d1ec6f894756c6eda3e2ae9a929196a8a7e4c5c2 Mon Sep 17 00:00:00 2001 From: Philip Roche Date: Thu, 17 Aug 2023 11:46:59 +0100 Subject: [PATCH] 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. --- debian/changelog | 6 ++++++ live-build/auto/config | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/debian/changelog b/debian/changelog index d589c4b4..8e4924af 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 Thu, 17 Aug 2023 11:44:23 +0100 + livecd-rootfs (23.10.15) mantic; urgency=medium [ Stefan Hammer ] diff --git a/live-build/auto/config b/live-build/auto/config index c9157d07..587bcb39 100755 --- a/live-build/auto/config +++ b/live-build/auto/config @@ -1106,6 +1106,12 @@ case $PROJECT in KERNEL_FLAVOURS=virtual 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 else add_task install minimal standard cloud-image