mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-02-23 11:21:12 +00:00
Disable APT periodic update for OCI/docker images
When cron-like services are installed in the OCI/docker image, APT should not do periodic updates by default. LP: #1810451
This commit is contained in:
parent
776269b4d2
commit
14a628e3c8
7
debian/changelog
vendored
7
debian/changelog
vendored
@ -1,3 +1,10 @@
|
||||
livecd-rootfs (2.754) UNRELEASED; urgency=medium
|
||||
|
||||
* Disable APT periodic update for OCI/docker images when cron-like
|
||||
services are installed. LP: #1810451
|
||||
|
||||
-- Thomas Bechtold <thomas.bechtold@canonical.com> 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
|
||||
|
@ -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/*
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user