From 672148a82d2f69273fa08aee13c784ac6c052d43 Mon Sep 17 00:00:00 2001 From: Dusty Mabe Date: Fri, 16 May 2025 15:45:07 -0400 Subject: [PATCH] minimal/systemd-presets: preset dnf-makecache.timer to disabled This one doesn't make much sense to have enabled by default on systems with image based updates because we shouldn't need a local cache of yum repo metadata (i.e. we should just be interacting with a registry). --- minimal/systemd-presets.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/minimal/systemd-presets.yaml b/minimal/systemd-presets.yaml index 4607210..3f0ce69 100644 --- a/minimal/systemd-presets.yaml +++ b/minimal/systemd-presets.yaml @@ -1,5 +1,14 @@ # Postprocessing relating to systemd presets on the system. postprocess: + - | + #!/bin/bash + set -xeuo pipefail + # Override some of the default presets. + cat < usr/lib/systemd/system-preset/85-bootc.preset + # Disable dnf-makecache.timer on bootc/image mode systems + # https://github.com/coreos/fedora-coreos-tracker/issues/1896#issuecomment-2848251507 + disable dnf-makecache.timer + EOF # Undo RPM scripts enabling units; we want the presets to be canonical # https://github.com/projectatomic/rpm-ostree/issues/1803 - |