~ruther/guix-local

150d8e6414cad90e1da7d767251b874688e89e26 — Ludovic Courtès 11 years ago 5975881
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.
1 files changed, 8 insertions(+), 2 deletions(-)

M gnu/services/networking.scm
M gnu/services/networking.scm => gnu/services/networking.scm +8 -2
@@ 50,9 50,15 @@ gateway."
  (with-monad %store-monad
    (return
     (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
       (string-append "Set up networking on the '" interface
                      "' interface using a static IP address."))
       "Bring up the networking interface using a static IP address.")
      (provision provision)
      (start #~(lambda _
                 ;; Return #t if successfully started.