Skip to content

Commit

Permalink
systemd/system: upholds does not respect conditions
Browse files Browse the repository at this point in the history
for example, it is always started on QEMU

Signed-off-by: Mathieu Tortuyaux <[email protected]>
  • Loading branch information
tormath1 committed Sep 9, 2023
1 parent 46490ae commit 189c3d0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions systemd/system/sshkeys.service
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,10 @@ ConditionKernelCommandLine=|ignition.platform.id=gce
ConditionKernelCommandLine=|flatcar.oem.id=gce
ConditionKernelCommandLine=|coreos.oem.id=gce

Upholds[email protected]

[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/bin/true
ExecStart=/usr/bin/systemctl start [email protected]

[Install]
WantedBy=multi-user.target

0 comments on commit 189c3d0

Please sign in to comment.