diff --git a/units/systemd-imds-import.service.in b/units/systemd-imds-import.service.in index 9704557fbb..24eee236b8 100644 --- a/units/systemd-imds-import.service.in +++ b/units/systemd-imds-import.service.in @@ -11,12 +11,14 @@ Description=Import System Credentials from IMDS Documentation=man:systemd-imds(1) Documentation=man:systemd.system-credentials(7) + DefaultDependencies=no -Wants=systemd-imdsd.socket network-online.target -After=systemd-imdsd.socket network-online.target +Wants=systemd-imdsd.socket +After=systemd-imdsd.socket Before=sysinit.target systemd-firstboot.service Conflicts=shutdown.target Before=shutdown.target + ConditionPathExists=/etc/initrd-release [Service]