services: static-networking-service: Wait for udev, except for loopback.
Reported by DusXMT on #guix. * gnu/services/networking.scm (static-networking-service): Add 'requirement' field. Change 'documentation' to be a string literal.
This commit is contained in:
parent
5975881687
commit
150d8e6414
|
@ -50,9 +50,15 @@ gateway."
|
||||||
(with-monad %store-monad
|
(with-monad %store-monad
|
||||||
(return
|
(return
|
||||||
(service
|
(service
|
||||||
|
|
||||||
|
;; Unless we're providing the loopback interface, wait for udev to be up
|
||||||
|
;; and running so that INTERFACE is actually usable.
|
||||||
|
(requirement (if (memq 'loopback provision)
|
||||||
|
'()
|
||||||
|
'(udev)))
|
||||||
|
|
||||||
(documentation
|
(documentation
|
||||||
(string-append "Set up networking on the '" interface
|
"Bring up the networking interface using a static IP address.")
|
||||||
"' interface using a static IP address."))
|
|
||||||
(provision provision)
|
(provision provision)
|
||||||
(start #~(lambda _
|
(start #~(lambda _
|
||||||
;; Return #t if successfully started.
|
;; Return #t if successfully started.
|
||||||
|
|
Loading…
Reference in New Issue