From 189c3d021dceb0e43eb35e2ed42262efaeb421b0 Mon Sep 17 00:00:00 2001 From: Mathieu Tortuyaux Date: Fri, 8 Sep 2023 15:11:13 +0200 Subject: [PATCH] systemd/system: `upholds` does not respect conditions for example, it is always started on QEMU Signed-off-by: Mathieu Tortuyaux --- systemd/system/sshkeys.service | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/systemd/system/sshkeys.service b/systemd/system/sshkeys.service index bd456c9..72d2946 100644 --- a/systemd/system/sshkeys.service +++ b/systemd/system/sshkeys.service @@ -15,12 +15,10 @@ ConditionKernelCommandLine=|ignition.platform.id=gce ConditionKernelCommandLine=|flatcar.oem.id=gce ConditionKernelCommandLine=|coreos.oem.id=gce -Upholds=coreos-metadata-sshkeys@core.service - [Service] Type=oneshot RemainAfterExit=yes -ExecStart=/bin/true +ExecStart=/usr/bin/systemctl start coreos-metadata-sshkeys@core.service [Install] WantedBy=multi-user.target