From 27eae372849ef103b7915eecfdc2ecc248c98755 Mon Sep 17 00:00:00 2001 From: CloudBuilder Date: Tue, 8 Feb 2022 22:59:13 +0000 Subject: [PATCH] Imported 2.754 No reason for CPC update specified. --- debian/changelog | 7 +++++++ live-build/functions | 3 +++ 2 files changed, 10 insertions(+) diff --git a/debian/changelog b/debian/changelog index 901a57ff..cff499f8 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +livecd-rootfs (2.754) jammy; urgency=medium + + * Disable APT periodic update for OCI/docker images when cron-like + services are installed. (LP: #1810451) + + -- Thomas Bechtold Fri, 04 Feb 2022 11:41:12 +0100 + livecd-rootfs (2.753) jammy; urgency=medium * Disable compression and "hash table hardening" for journald in the diff --git a/live-build/functions b/live-build/functions index 1d9fac30..85c3a50f 100644 --- a/live-build/functions +++ b/live-build/functions @@ -947,6 +947,9 @@ configure_oci() { # https://github.com/docker/docker/blob/9a9fc01af8fb5d98b8eec0740716226fadb3735c/contrib/mkimage/debootstrap#L134-L151 echo 'Apt::AutoRemove::SuggestsImportant "false";' > ${chroot}/etc/apt/apt.conf.d/docker-autoremove-suggests + # https://bugs.launchpad.net/cloud-images/+bug/1810451 + echo 'APT::Periodic::Enable "0";' > ${chroot}/etc/apt/apt.conf.d/docker-disable-periodic-update + # delete all the apt list files since they're big and get stale quickly rm -rf ${chroot}/var/lib/apt/lists/*