| 1 |
[Unit] |
| 2 |
Description=NetworkManager Wait Online (initrd) |
| 3 |
DefaultDependencies=no |
| 4 |
Requires=NetworkManager-initrd.service |
| 5 |
After=NetworkManager-initrd.service |
| 6 |
Before=network-online.target |
| 7 |
ConditionPathExists=/etc/initrd-release |
| 8 |
ConditionPathExists=/run/NetworkManager/initrd/neednet |
| 9 |
|
| 10 |
[Service] |
| 11 |
# `nm-online -s` waits until the point when NetworkManager logs |
| 12 |
# "startup complete". That is when startup actions are settled and |
| 13 |
# devices and profiles reached a conclusive activated or deactivated |
| 14 |
# state. It depends on which profiles are configured to autoconnect and |
| 15 |
# also depends on profile settings like ipv4.may-fail/ipv6.may-fail, |
| 16 |
# which affect when a profile is considered fully activated. |
| 17 |
# Check NetworkManager logs to find out why wait-online takes a certain |
| 18 |
# time. |
| 19 |
|
| 20 |
Type=oneshot |
| 21 |
ExecStart=@bindir@/nm-online -s -q |
| 22 |
RemainAfterExit=yes |
| 23 |
Environment=NM_ONLINE_TIMEOUT=3600 |
| 24 |
|
| 25 |
[Install] |
| 26 |
WantedBy=initrd.target network-online.target |