| 1 |
[Unit] |
| 2 |
Description=NetworkManager (initrd) |
| 3 |
DefaultDependencies=no |
| 4 |
Wants=systemd-udev-trigger.service network.target |
| 5 |
After=systemd-udev-trigger.service network-pre.target dbus.service NetworkManager-config-initrd.service |
| 6 |
Before=network.target |
| 7 |
BindsTo=dbus.service |
| 8 |
ConditionPathExists=/etc/initrd-release |
| 9 |
ConditionPathExists=/run/NetworkManager/initrd/neednet |
| 10 |
ConditionPathExistsGlob=|/usr/lib/NetworkManager/system-connections/* |
| 11 |
ConditionPathExistsGlob=|/run/NetworkManager/system-connections/* |
| 12 |
ConditionPathExistsGlob=|/etc/NetworkManager/system-connections/* |
| 13 |
|
| 14 |
[Service] |
| 15 |
Type=dbus |
| 16 |
BusName=org.freedesktop.NetworkManager |
| 17 |
ExecReload=/usr/bin/busctl call org.freedesktop.NetworkManager /org/freedesktop/NetworkManager org.freedesktop.NetworkManager Reload u 0 |
| 18 |
ExecStart=@sbindir@/NetworkManager |
| 19 |
# NM doesn't want systemd to kill its children for it |
| 20 |
KillMode=process |
| 21 |
Environment=NM_CONFIG_ENABLE_TAG=initrd |
| 22 |
Restart=on-failure |
| 23 |
ProtectSystem=true |
| 24 |
ProtectHome=read-only |
| 25 |
|
| 26 |
[Install] |
| 27 |
WantedBy=initrd.target |
| 28 |
# We want to enable NetworkManager-wait-online-initrd.service whenever this |
| 29 |
# service is enabled. NetworkManager-wait-online-initrd.service has |
| 30 |
# WantedBy=network-online.target, so enabling it only has an effect if |
| 31 |
# network-online.target itself is enabled or pulled in by some other unit. |
| 32 |
Also=NetworkManager-config-initrd.service NetworkManager-wait-online-initrd.service |