[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
282/285: services: dhcp-client: Ignore interfaces that cannot be activat
From: |
guix-commits |
Subject: |
282/285: services: dhcp-client: Ignore interfaces that cannot be activated. |
Date: |
Sun, 29 Dec 2019 20:44:48 -0500 (EST) |
kkebreau pushed a commit to branch wip-gnome3.34
in repository guix.
commit b32771f73c076e8bc9a38bddc17cdcb94c8a832c
Author: Brice Waegeneire <address@hidden>
Date: Sat Dec 14 08:23:26 2019 +0100
services: dhcp-client: Ignore interfaces that cannot be activated.
Fixes <https://bugs.gnu.org/38524>.
* gnu/services/networking.scm (dhcp-client-service-type): Filter interfaces
that cannot be activated.
Signed-off-by: Ludovic Courtès <address@hidden>
---
gnu/services/networking.scm | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/gnu/services/networking.scm b/gnu/services/networking.scm
index 6485c08..59b895d 100644
--- a/gnu/services/networking.scm
+++ b/gnu/services/networking.scm
@@ -234,14 +234,15 @@ fe80::1%lo0 apps.facebook.com\n")
(define valid?
(lambda (interface)
(and (arp-network-interface? interface)
- (not (loopback-network-interface? interface)))))
+ (not (loopback-network-interface? interface))
+ ;; XXX: Make sure the interfaces are up so that
+ ;; 'dhclient' can actually send/receive over them.
+ ;; Ignore those that cannot be activated.
+ (false-if-exception
+ (set-network-interface-up interface)))))
(define ifaces
(filter valid? (all-network-interface-names)))
- ;; XXX: Make sure the interfaces are up so that 'dhclient' can
- ;; actually send/receive over them.
- (for-each set-network-interface-up ifaces)
-
(false-if-exception (delete-file #$pid-file))
(let ((pid (fork+exec-command
(cons* #$dhclient "-nw"
- 253/285: gnu: python-waf: Add some extra tools., (continued)
- 253/285: gnu: python-waf: Add some extra tools., guix-commits, 2019/12/29
- 255/285: gnu: password-store: Make search path single-entry., guix-commits, 2019/12/29
- 258/285: gnu: Add picom., guix-commits, 2019/12/29
- 261/285: gnu: ruby-multi-json: Don't use unstable tarball., guix-commits, 2019/12/29
- 264/285: gnu: ruby-guard: Don't use unstable tarball., guix-commits, 2019/12/29
- 269/285: gnu: Add ghc-filepath-bytestring., guix-commits, 2019/12/29
- 268/285: gnu: curseradio: Link to mpv., guix-commits, 2019/12/29
- 271/285: gnu: diffoscope: Update to 134., guix-commits, 2019/12/29
- 272/285: gnu: portaudio: Fix build., guix-commits, 2019/12/29
- 285/285: gnu: guix-data-service: Update to 0.0.1-13.82b797e., guix-commits, 2019/12/29
- 282/285: services: dhcp-client: Ignore interfaces that cannot be activated.,
guix-commits <=
- 262/285: gnu: ruby-ae: Don't use unstable tarball., guix-commits, 2019/12/29
- 266/285: gnu: ruby-oj: Don't use unstable tarball., guix-commits, 2019/12/29
- 270/285: gnu: pelican: Update to 4.2., guix-commits, 2019/12/29
- 265/285: gnu: ruby-spring: Don't use unstable tarball., guix-commits, 2019/12/29
- 277/285: git-authenticate: Add glv to the list of committers., guix-commits, 2019/12/29
- 273/285: gnu: gnome: Update dependencies., guix-commits, 2019/12/29
- 274/285: gnu: gnome: Sort packages logically., guix-commits, 2019/12/29
- 280/285: pack: Save provenance information when using '--manifest'., guix-commits, 2019/12/29
- 279/285: guix package: Save provenance information when using '--manifest'., guix-commits, 2019/12/29
- 283/285: installer: Pass '--fallback' to 'guix system init'., guix-commits, 2019/12/29