unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
From: Brett Gilio <brettg@posteo.net>
To: Brice Waegeneire <brice@waegenei.re>
Cc: 38524@debbugs.gnu.org
Subject: bug#38524: [PATCH] services: dhcp-client: Ignore interfaces that need non-free firmware.
Date: Sat, 14 Dec 2019 04:39:33 +0000 (UTC)	[thread overview]
Message-ID: <6d2807a3-a796-4c14-b24d-515f3c7fbe52@localhost> (raw)
In-Reply-To: <20191213215608.19193-2-brice@waegenei.re>


This LGTM, though I'd add a comment noting this bug report or something so it is known why this behavior was adjusted.

Dec 13, 2019 3:57:14 PM Brice Waegeneire <brice@waegenei.re>:

> * gnu/services/networking.scm (dhcp-client-service-type): Filter interfaces
> that need non-free firmware.
> ---
> gnu/services/networking.scm | 10 +++++-----
> 1 file changed, 5 insertions(+), 5 deletions(-)
> 
> diff --git a/gnu/services/networking.scm b/gnu/services/networking.scm
> index 93d9b6a15e..7a57e33974 100644
> --- a/gnu/services/networking.scm
> +++ b/gnu/services/networking.scm
> @@ -223,14 +223,14 @@ 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.
> + (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"
> -- 
> 2.19.2
> 

  reply	other threads:[~2019-12-14  4:40 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-08  8:59 bug#38524: 'dhcp-client-service' crash when non-libre networking interface is present Brice Waegeneire
2019-12-10 17:11 ` Ludovic Courtès
2019-12-10 21:25   ` Brice Waegeneire
2019-12-12 13:07     ` Ludovic Courtès
2019-12-13 21:56 ` bug#38524: [PATCH] services: dhcp-client: Ignore interfaces that need non-free Brice Waegeneire
2019-12-13 21:56   ` bug#38524: [PATCH] services: dhcp-client: Ignore interfaces that need non-free firmware Brice Waegeneire
2019-12-14  4:39     ` Brett Gilio [this message]
2019-12-14  7:23 ` bug#38524: [PATCH v2] " Brice Waegeneire
2019-12-29 16:50   ` Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6d2807a3-a796-4c14-b24d-515f3c7fbe52@localhost \
    --to=brettg@posteo.net \
    --cc=38524@debbugs.gnu.org \
    --cc=brice@waegenei.re \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).