1
1
Fork 0
mirror of https://gitlab.archlinux.org/archlinux/infrastructure.git synced 2024-05-27 04:16:03 +02:00

Merge branch 'hcloud-init' into 'master'

networking: Make hcloud-init.service more reliable

Closes #371

See merge request archlinux/infrastructure!474
This commit is contained in:
Kristian Klausen 2021-08-24 17:12:27 +00:00
commit 1db79c8045

View File

@ -1,18 +1,15 @@
[Unit]
Description=Apply configuration from HCloud metadata
DefaultDependencies=no
ConditionVirtualization=kvm
After=systemd-networkd.service
Before=network.target multi-user.target shutdown.target
Conflicts=shutdown.target
Wants=systemd-networkd.service
After=systemd-networkd-wait-online.service
Before=network-online.target
Wants=network-online.target
ConditionPathExists=!/etc/systemd/network/10-dhcp-ethernet.network.d/hcloud.conf
[Service]
ExecStart=/usr/local/bin/hcloud-init
Type=oneshot
RemainAfterExit=yes
StandardOutput=journal
StandardError=journal
[Install]
WantedBy=multi-user.target