Advertisement
zmatt

systemd-networkd-wait-online logic

Jan 3rd, 2022 (edited)
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.35 KB | None | 0 0
  1. If one or more --interface options are given, then exactly those interfaces are considered.
  2. (--ignore options and RequiredForOnline=false have no effect in this case)
  3.  
  4. If no --interface option is given, all detected interfaces are considered except:
  5. - the loopback interface
  6. - interfaces excluded using --ignore
  7. - interfaces with RequiredForOnline=false
  8.  
  9.  
  10. Condition for systemd-networkd-wait-online to succeed:
  11.  
  12. with --any option:
  13. at least one of the interfaces must be "ready" (defined below).
  14.  
  15. without --any option, with one or more --interface options:
  16. all of the interfaces must be "ready".
  17.  
  18. without --any option, without --interface options:
  19. at least one of the interfaces must be "ready".
  20. none of the interfaces may be "unconfigured".
  21.  
  22.  
  23. where "unconfigured" means the link state is any of:
  24. - unknown (still being processed by udev)
  25. - pending
  26. - configuring
  27.  
  28. and "ready" means the interface
  29. 1. is not "unconfigured", and
  30. 2. has operstate within the range given by (from highest to lowest priority):
  31. - from --interface=INTERFACE:MIN_OPERSTATE[:MAX_OPERSTATE]
  32. - from --operational-state=MIN_OPERSTATE[:MAX_OPERSTATE]
  33. - from RequiredForOnline=MIN_OPERSTATE[:MAX_OPERSTATE
  34. - default: >= degraded
  35. (An interface specified via --interface is also considered to be "ready" if the
  36. interface doesn't exist and the MIN_OPERSTATE is "missing".)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement