From 1242ddb316ec5c2b2ae59908d972a67cefc71987 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Wed, 29 Oct 2025 11:54:06 -0400 Subject: [PATCH] systemd: Add condition to only run on ostree systems Add ConditionKernelCommandLine=ostree to prevent zincati from running on systems that aren't using ostree, where the update agent wouldn't be applicable. This is motivated by having the service not run in `bcvk ephemeral` as well as `podman run /sbin/init`. Signed-off-by: Colin Walters --- dist/systemd/system/zincati.service | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dist/systemd/system/zincati.service b/dist/systemd/system/zincati.service index 1837a092..01e253f9 100644 --- a/dist/systemd/system/zincati.service +++ b/dist/systemd/system/zincati.service @@ -3,6 +3,9 @@ Description=Zincati Update Agent Documentation=https://github.com/coreos/zincati # Skip live systems not meant to be auto-updated (e.g. live PXE, live ISO) ConditionPathExists=!/run/ostree-live +# This ensures compatibility with `bcvk ephemeral` today; compatibility +# with a bootc+composefs future is still TBD. +ConditionKernelCommandLine=ostree After=network.target # Wait for the boot to be marked as successful. In cluster contexts, # this prevents rolling out broken updates to all nodes in the fleet.