From unknown Mon Jun 23 18:29:26 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#64850 <64850@debbugs.gnu.org> To: bug#64850 <64850@debbugs.gnu.org> Subject: Status: [PATCH 0/1] Provide a way to use multiple dhcp clients with static-networking Reply-To: bug#64850 <64850@debbugs.gnu.org> Date: Tue, 24 Jun 2025 01:29:26 +0000 retitle 64850 [PATCH 0/1] Provide a way to use multiple dhcp clients with s= tatic-networking reassign 64850 guix-patches submitter 64850 Alexey Abramov severity 64850 normal tag 64850 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 25 06:58:25 2023 Received: (at submit) by debbugs.gnu.org; 25 Jul 2023 10:58:25 +0000 Received: from localhost ([127.0.0.1]:44720 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qOFkH-0006us-Hl for submit@debbugs.gnu.org; Tue, 25 Jul 2023 06:58:25 -0400 Received: from lists.gnu.org ([2001:470:142::17]:45902) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qOFkF-0006ue-6H for submit@debbugs.gnu.org; Tue, 25 Jul 2023 06:58:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qOFk8-0004lk-6w for guix-patches@gnu.org; Tue, 25 Jul 2023 06:58:16 -0400 Received: from mail.mmer.org ([178.22.65.174]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qOFk6-0006UJ-Lk for guix-patches@gnu.org; Tue, 25 Jul 2023 06:58:15 -0400 Received: from mail.mmer.org (localhost [127.0.0.1]) by mail.mmer.org (OpenSMTPD) with ESMTP id a19f500d for ; Tue, 25 Jul 2023 10:58:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=mmer.org; h=from:to :subject:date:message-id:mime-version:content-transfer-encoding; s=dkim; bh=uWFE2WQUV8L/++DlOoa+f6Fqma42dJWNBYKllgaS+rM=; b=hPDR EN1vN8qySFO/1npghCQNJyYU659oeU55hf44lPbxyI9RcCuW6XmHILPW8U0KaFYM Xcru8xBi80nYbx6jc9lXBWu5n6xjdVXQLm024UQj1MCGUVFQ2fjT+Xq2ItBOEabv 0weQRsXzXJrz3WN69mxOncxOaPBbiY22M8cr6Z0= Received: from delta (j74210.upc-j.chello.nl [24.132.74.210]) by mail.mmer.org (OpenSMTPD) with ESMTPSA id 7f954e03 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for ; Tue, 25 Jul 2023 10:58:09 +0000 (UTC) From: Alexey Abramov To: guix-patches@gnu.org Subject: [PATCH 0/1] Provide a way to use multiple dhcp clients with static-networking Date: Tue, 25 Jul 2023 12:57:39 +0200 Message-Id: <20230725105739.17244-1-levenson@mmer.org> X-Mailer: git-send-email 2.39.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=178.22.65.174; envelope-from=levenson@mmer.org; helo=mail.mmer.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.9 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.1 (/) In a case you need to configure existing interfaces, rename them or for example construct a bond first and attach dhcp client to it, we need to run static-networking AND dhcp-client at the same time. At this moment both services provision 'networking by default. Even though we can override provision for static-networking, it is still not enough in case we need to run multiple dhcp-clients on different interfaces. This patch will allow provision override for dhcp-client. This is an addition to bug#64616. Alexey Abramov (1): services: dhcp-client-configuration: Allow provision override gnu/services/networking.scm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) -- 2.40.1 From debbugs-submit-bounces@debbugs.gnu.org Tue Jul 25 07:00:14 2023 Received: (at 64850) by debbugs.gnu.org; 25 Jul 2023 11:00:14 +0000 Received: from localhost ([127.0.0.1]:44725 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qOFm1-0006zO-W3 for submit@debbugs.gnu.org; Tue, 25 Jul 2023 07:00:14 -0400 Received: from mail.mmer.org ([178.22.65.174]:55718) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qOFm0-0006y6-8O for 64850@debbugs.gnu.org; Tue, 25 Jul 2023 07:00:12 -0400 Received: from mail.mmer.org (localhost [127.0.0.1]) by mail.mmer.org (OpenSMTPD) with ESMTP id 075e9703 for <64850@debbugs.gnu.org>; Tue, 25 Jul 2023 11:00:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=mmer.org; h=from:to :subject:date:message-id:mime-version:content-transfer-encoding; s=dkim; bh=UmajVtjdglM+zqo8HIBVXe+Bb/QCV2IXnBgJaPpD0gY=; b=YSld BcblLaOYPTBQ055qCqFS2qfR44SqhQdSd0NmKFPuU4+AYu44gNsfyFK5qA+hxTuM v9gKVy30s1+fFpOr3SwkLuWX7CGw8nRb61K8dp/86ijGwba++8itLh5g7mrItBZh YJhBJrly+BS7BUPwsrsyPbIdtWAu/aYI0pMQWtQ= Received: from delta (j74210.upc-j.chello.nl [24.132.74.210]) by mail.mmer.org (OpenSMTPD) with ESMTPSA id 2102d153 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for <64850@debbugs.gnu.org>; Tue, 25 Jul 2023 11:00:04 +0000 (UTC) From: Alexey Abramov To: 64850@debbugs.gnu.org Subject: [PATCH 1/1] services: dhcp-client-configuration: Allow provision override Date: Tue, 25 Jul 2023 12:59:56 +0200 Message-Id: <20230725105956.17963-1-levenson@mmer.org> X-Mailer: git-send-email 2.39.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 64850 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) * gnu/services/networking.scm: Allow setting up provision to allow running DHCP client and static network configuration simultaneously. --- gnu/services/networking.scm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gnu/services/networking.scm b/gnu/services/networking.scm index 5657b141d9..dc75c2f59d 100644 --- a/gnu/services/networking.scm +++ b/gnu/services/networking.scm @@ -88,6 +88,7 @@ (define-module (gnu services networking) dhcp-client-configuration dhcp-client-configuration? dhcp-client-configuration-package + dhcp-client-configuration-provision dhcp-client-configuration-interfaces dhcp-client-configuration-shepherd-requirement @@ -303,6 +304,8 @@ (define-record-type* (default isc-dhcp)) (shepherd-requirement dhcp-client-configuration-shepherd-requirement (default '())) + (provision dhcp-client-configuration-provision + (default '(networking))) (interfaces dhcp-client-configuration-interfaces (default 'all))) ;'all | list of strings @@ -312,6 +315,7 @@ (define dhcp-client-shepherd-service (let ((package (dhcp-client-configuration-package config)) (shepherd-requirement (dhcp-client-configuration-shepherd-requirement config)) (interfaces (dhcp-client-configuration-interfaces config)) + (provision (dhcp-client-configuration-provision config)) (pid-file "/var/run/dhclient.pid")) (list (shepherd-service (documentation "Set up networking via DHCP.") @@ -321,7 +325,7 @@ (define dhcp-client-shepherd-service ;; networking is unavailable, but also means that the interface is not up ;; yet when 'start' completes. To wait for the interface to be ready, one ;; should instead monitor udev events. - (provision '(networking)) + (provision provision) (start #~(lambda _ (define dhclient -- 2.40.1 From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 17 09:06:55 2023 Received: (at 64850-done) by debbugs.gnu.org; 17 Sep 2023 13:06:55 +0000 Received: from localhost ([127.0.0.1]:49399 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qhrUE-00087l-J9 for submit@debbugs.gnu.org; Sun, 17 Sep 2023 09:06:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44342) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qhrUB-00087U-CY for 64850-done@debbugs.gnu.org; Sun, 17 Sep 2023 09:06:53 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qhrTx-0008TK-Vm; Sun, 17 Sep 2023 09:06:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:In-Reply-To:Date:References:Subject:To: From; bh=ZndSHrE+/DRmOO0e7gdw9gSpNDZmnH4L9cVvMDSgBy8=; b=SZg3wmAtAufIwxL4AbGy VMdsIvIV2PMRWwrnKFO+w8iuIjvEHt9fD8g4TTFHSpvDjg3nkj8QoOkAoKzBxKF2pUVrLrWSR5kaA j3PNkkGsoJexHo1F0K/iCQ6ubgEONIaGYB7sQ0XfiSZU1jjIplI8Tis3tI0zcmqLuMiyLYRGANwWq tP4wNkhH9jrMPc8fDeHl3YnvxgZP+yNjxSkfeigIbhu4Mtq4SH6wx0b4kIfWwCxL7arR1lltHVQh6 39ZDH4Km1RvDYI2ZCe+WTV9VqPMvqcdZnBGgvwvKbvSoZbO+rK/ZEut4/e2gTWzpm6wsB0QwEaBX4 YBV5rZncUt5nug==; From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Alexey Abramov Subject: Re: bug#64850: [PATCH 0/1] Provide a way to use multiple dhcp clients with static-networking References: <20230725105739.17244-1-levenson@mmer.org> <20230725105956.17963-1-levenson@mmer.org> Date: Sun, 17 Sep 2023 15:06:33 +0200 In-Reply-To: <20230725105956.17963-1-levenson@mmer.org> (Alexey Abramov's message of "Tue, 25 Jul 2023 12:59:56 +0200") Message-ID: <87zg1lx82u.fsf_-_@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 64850-done Cc: 64850-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi, Alexey Abramov skribis: > * gnu/services/networking.scm: Allow setting up provision to allow running > DHCP client and static network configuration simultaneously. > --- > gnu/services/networking.scm | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) > > diff --git a/gnu/services/networking.scm b/gnu/services/networking.scm > index 5657b141d9..dc75c2f59d 100644 > --- a/gnu/services/networking.scm > +++ b/gnu/services/networking.scm > @@ -88,6 +88,7 @@ (define-module (gnu services networking) > dhcp-client-configuration > dhcp-client-configuration? > dhcp-client-configuration-package > + dhcp-client-configuration-provision > dhcp-client-configuration-interfaces > dhcp-client-configuration-shepherd-requirement >=20=20 > @@ -303,6 +304,8 @@ (define-record-type* > (default isc-dhcp)) > (shepherd-requirement dhcp-client-configuration-shepherd-requirement > (default '())) > + (provision dhcp-client-configuration-provision > + (default '(networking))) I changed the field name to =E2=80=98shepherd-provision=E2=80=99 for consis= tency and documented it in =E2=80=98doc/guix.texi=E2=80=99. Committed! Thanks, Ludo=E2=80=99. From unknown Mon Jun 23 18:29:26 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 16 Oct 2023 11:24:08 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator