From 150d8e6414cad90e1da7d767251b874688e89e26 Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Sun, 14 Sep 2014 17:28:43 +0200 Subject: 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. --- gnu/services/networking.scm | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'gnu') diff --git a/gnu/services/networking.scm b/gnu/services/networking.scm index 6a7d194659..ce924a55bf 100644 --- a/gnu/services/networking.scm +++ b/gnu/services/networking.scm @@ -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. -- cgit 1.4.1