summaryrefslogtreecommitdiffstats
path: root/modules.d/35network-manager/nm-wait-online-initrd.service
diff options
context:
space:
mode:
Diffstat (limited to 'modules.d/35network-manager/nm-wait-online-initrd.service')
-rw-r--r--modules.d/35network-manager/nm-wait-online-initrd.service16
1 files changed, 16 insertions, 0 deletions
diff --git a/modules.d/35network-manager/nm-wait-online-initrd.service b/modules.d/35network-manager/nm-wait-online-initrd.service
new file mode 100644
index 0000000..ac8762a
--- /dev/null
+++ b/modules.d/35network-manager/nm-wait-online-initrd.service
@@ -0,0 +1,16 @@
+[Unit]
+DefaultDependencies=no
+Requires=nm-initrd.service
+After=nm-initrd.service
+Before=network-online.target
+Before=dracut-initqueue.service
+ConditionPathExists=/run/NetworkManager/initrd/neednet
+
+[Service]
+Type=oneshot
+ExecStart=/usr/bin/nm-online -s -q -t 3600
+RemainAfterExit=yes
+
+[Install]
+WantedBy=initrd.target
+WantedBy=network-online.target