Revert "units: drop After=network-online.target from imds services"

IMDS access requires networking, hence we need to run after
network-online.target. Everything else would be racy and result in
likely timeouts, because we might try to contact the network too early.

This reverts commit 3f33f4d057.
This commit is contained in:
Lennart Poettering
2026-06-19 20:05:14 +02:00
committed by Zbigniew Jędrzejewski-Szmek
parent 55fa7b9d4c
commit 13340c6af2
+2 -3
View File
@@ -11,10 +11,9 @@
Description=Import System Credentials from IMDS
Documentation=man:systemd-imds(1)
Documentation=man:systemd.system-credentials(7)
DefaultDependencies=no
Wants=systemd-imdsd.socket
After=systemd-imdsd.socket
Wants=systemd-imdsd.socket network-online.target
After=systemd-imdsd.socket network-online.target
Before=sysinit.target systemd-firstboot.service
Conflicts=shutdown.target
Before=shutdown.target