Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

systemd/system/sshkeys: Make execution more robust #112

Merged
merged 1 commit into from
Nov 17, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/[email protected]

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 [email protected]

[Install]
Expand Down