From 1b4000eb7347a783e2a85c4d30e394ce712b5ae7 Mon Sep 17 00:00:00 2001 From: Mikhail Zabaluev Date: Fri, 11 May 2018 21:34:21 +0300 Subject: [PATCH] fedora-docker-base: Disable dnf-makecache.timer When containers based on this image are run with systemd as PID 1, there should not be dnf cache updates inside the container, at least by default. https://bugzilla.redhat.com/show_bug.cgi?id=1576993 --- fedora-docker-base.ks | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fedora-docker-base.ks b/fedora-docker-base.ks index 016b415..94c6d0c 100644 --- a/fedora-docker-base.ks +++ b/fedora-docker-base.ks @@ -23,6 +23,9 @@ rm -rf /tmp/* # https://pagure.io/atomic-wg/issue/308 printf "tsflags=nodocs\n" >>/etc/dnf/dnf.conf +# https://bugzilla.redhat.com/show_bug.cgi?id=1576993 +systemctl disable dnf-makecache.timer + #Mask mount units and getty service so that we don't get login prompt systemctl mask systemd-remount-fs.service dev-hugepages.mount sys-fs-fuse-connections.mount systemd-logind.service getty.target console-getty.service