Skip to content

Commit

Permalink
Merge pull request #112 from flatcar/kai/sshkeys
Browse files Browse the repository at this point in the history
systemd/system/sshkeys: Make execution more robust
  • Loading branch information
pothos authored Nov 17, 2023
2 parents 591e7a6 + ff06501 commit db7a12e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions systemd/system/sshkeys.service
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
[Unit]
# Don't race and we also want to rely on the folder to be created
After=update-ssh-keys-after-ignition.service

ConditionPathIsSymbolicLink=!/etc/systemd/system/coreos-metadata-sshkeys@core.service

ConditionKernelCommandLine=|ignition.platform.id=packet
ConditionKernelCommandLine=|flatcar.oem.id=packet
ConditionKernelCommandLine=|coreos.oem.id=packet
Expand All @@ -22,6 +27,7 @@ ConditionKernelCommandLine=|coreos.oem.id=openstack
[Service]
Type=oneshot
RemainAfterExit=yes
Restart=on-failure
ExecStart=/usr/bin/systemctl start coreos-metadata-sshkeys@core.service

[Install]
Expand Down

0 comments on commit db7a12e

Please sign in to comment.