From unknown Fri Jun 20 07:26:54 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#40879 <40879@debbugs.gnu.org> To: bug#40879 <40879@debbugs.gnu.org> Subject: Status: [PATCH] gnu: linux-boot: Allow to mount the root file system via nfs Reply-To: bug#40879 <40879@debbugs.gnu.org> Date: Fri, 20 Jun 2025 14:26:54 +0000 retitle 40879 [PATCH] gnu: linux-boot: Allow to mount the root file system = via nfs reassign 40879 guix-patches submitter 40879 Stefan severity 40879 normal tag 40879 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 26 16:19:18 2020 Received: (at submit) by debbugs.gnu.org; 26 Apr 2020 20:19:18 +0000 Received: from localhost ([127.0.0.1]:35023 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jSnkD-0005GK-4Y for submit@debbugs.gnu.org; Sun, 26 Apr 2020 16:19:18 -0400 Received: from lists.gnu.org ([209.51.188.17]:44402) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jSmqd-0003Nm-4C for submit@debbugs.gnu.org; Sun, 26 Apr 2020 15:21:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47204) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jSmqc-0000H1-Md for guix-patches@gnu.org; Sun, 26 Apr 2020 15:21:50 -0400 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jSmqb-0001og-Ks for guix-patches@gnu.org; Sun, 26 Apr 2020 15:21:50 -0400 Received: from vsmx011.vodafonemail.xion.oxcs.net ([153.92.174.89]:53619) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jSmqa-0001oH-Uw for guix-patches@gnu.org; Sun, 26 Apr 2020 15:21:49 -0400 Received: from vsmx003.vodafonemail.xion.oxcs.net (unknown [192.168.75.197]) by mta-5-out.mta.xion.oxcs.net (Postfix) with ESMTP id 7AC9259D175 for ; Sun, 26 Apr 2020 19:21:42 +0000 (UTC) Received: from macbook-pro.kuh-wiese.my-router.de (unknown [2.206.251.67]) by mta-7-out.mta.xion.oxcs.net (Postfix) with ESMTPA id 5B5B2539A58 for ; Sun, 26 Apr 2020 19:21:40 +0000 (UTC) From: Stefan Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: [PATCH] gnu: linux-boot: Allow to mount the root file system via nfs Message-Id: <29B6FCE4-CD82-4BEA-A00B-9D1C6EAFE4A9@vodafonemail.de> Date: Sun, 26 Apr 2020 21:21:38 +0200 To: guix-patches@gnu.org Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) X-Mailer: Apple Mail (2.3124) X-VADE-STATUS: LEGIT Received-SPF: pass client-ip=153.92.174.89; envelope-from=stefan-guix@vodafonemail.de; helo=vsmx011.vodafonemail.xion.oxcs.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/04/26 15:21:42 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x (no timestamps) [generic] [fuzzy] X-Received-From: 153.92.174.89 X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sun, 26 Apr 2020 16:19:16 -0400 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: -2.3 (--) * gnu/build/linux-boot.scm (boot-system) Treat a root option with ":/" = as an nfs source and avoid to call 'canonicalize-device-spec' for it. --- gnu/build/linux-boot.scm | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/gnu/build/linux-boot.scm b/gnu/build/linux-boot.scm index 4fb711b8f2..05e833c0c6 100644 --- a/gnu/build/linux-boot.scm +++ b/gnu/build/linux-boot.scm @@ -534,10 +534,13 @@ upon error." ;; The "--root=3DSPEC" kernel command-line option always = provides a ;; string, but the string can represent a device, a UUID, = or a ;; label. So check for all three. - (let ((root (cond ((string-prefix? "/" root) root) - ((uuid root) =3D> identity) - (else (file-system-label root))))) - (mount-root-file-system (canonicalize-device-spec root) + (let ((device-spec (cond ((string-prefix? "/" root) root) + ((uuid root) =3D> identity) + ((string-contains root ":/") #f) ; = nfs + (else (file-system-label root))))) + (mount-root-file-system (if device-spec + (canonicalize-device-spec = device-spec) + root) root-fs-type #:volatile-root? volatile-root? #:flags root-fs-flags --=20 2.26.0 From debbugs-submit-bounces@debbugs.gnu.org Sat May 02 10:22:33 2020 Received: (at 40879-done) by debbugs.gnu.org; 2 May 2020 14:22:34 +0000 Received: from localhost ([127.0.0.1]:53589 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jUt2H-0000HK-M5 for submit@debbugs.gnu.org; Sat, 02 May 2020 10:22:33 -0400 Received: from eggs.gnu.org ([209.51.188.92]:59642) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jUt2G-0000H8-1a for 40879-done@debbugs.gnu.org; Sat, 02 May 2020 10:22:32 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:58466) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jUt25-00030N-Q0; Sat, 02 May 2020 10:22:24 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=47770 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jUt25-00067v-13; Sat, 02 May 2020 10:22:21 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Stefan Subject: Re: [bug#40879] [PATCH] gnu: linux-boot: Allow to mount the root file system via nfs References: <29B6FCE4-CD82-4BEA-A00B-9D1C6EAFE4A9@vodafonemail.de> Date: Sat, 02 May 2020 16:22:19 +0200 In-Reply-To: <29B6FCE4-CD82-4BEA-A00B-9D1C6EAFE4A9@vodafonemail.de> (Stefan's message of "Sun, 26 Apr 2020 21:21:38 +0200") Message-ID: <87wo5u5sdg.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 40879-done Cc: 40879-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 Stefan, Stefan skribis: > * gnu/build/linux-boot.scm (boot-system) Treat a root option with ":/" as= an nfs source > and avoid to call 'canonicalize-device-spec' for it. I slightly tweaked the subject line and applied, thank you! Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Sat May 02 18:19:22 2020 Received: (at 40879-done) by debbugs.gnu.org; 2 May 2020 22:19:22 +0000 Received: from localhost ([127.0.0.1]:54088 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jV0Ti-00008i-BJ for submit@debbugs.gnu.org; Sat, 02 May 2020 18:19:22 -0400 Received: from dd26836.kasserver.com ([85.13.145.193]:34062) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jV0Tg-00008Z-MQ for 40879-done@debbugs.gnu.org; Sat, 02 May 2020 18:19:21 -0400 Received: from localhost (80-110-127-207.cgn.dynamic.surfer.at [80.110.127.207]) by dd26836.kasserver.com (Postfix) with ESMTPSA id 3A89F3360CAC; Sun, 3 May 2020 00:19:19 +0200 (CEST) Date: Sun, 3 May 2020 00:19:16 +0200 From: Danny Milosavljevic To: Ludovic =?ISO-8859-1?Q?Court=E8s?= , Stefan Subject: Re: bug#40879: [PATCH] gnu: linux-boot: Allow to mount the root file system via nfs Message-ID: <20200503001916.3bab3207@scratchpost.org> In-Reply-To: <87wo5u5sdg.fsf@gnu.org> References: <29B6FCE4-CD82-4BEA-A00B-9D1C6EAFE4A9@vodafonemail.de> <87wo5u5sdg.fsf@gnu.org> X-Mailer: Claws Mail 3.17.5 (GTK+ 2.24.32; x86_64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/5Y4EiYN17Ake/o_bK_4BK9E"; protocol="application/pgp-signature"; micalg=pgp-sha256 X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 40879-done Cc: 40879-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: -1.7 (-) --Sig_/5Y4EiYN17Ake/o_bK_4BK9E Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable --- a/gnu/build/linux-boot.scm +++ b/gnu/build/linux-boot.scm @@ -534,10 +534,13 @@ upon error." ;; The "--root=3DSPEC" kernel command-line option always provi= des a ;; string, but the string can represent a device, a UUID, or a ;; label. So check for all three. Nitpick: Comment above it is now outdated ;) --Sig_/5Y4EiYN17Ake/o_bK_4BK9E Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAl6t8eQACgkQ5xo1VCww uqUMGwf+M5XoM1OY/v/WzWjgC3hGqnHx5BUXmdlLK2KTmvwBDKt7Q+Ixou6uDBdY CWEgGrii8JBJQFUX7RcejZtkbnYSX8rtkuuzQpqnNMyDwEcet3NTYWVCE7W5G/5W QPGkPaQg2Dl5MtiCpPKG/z3WZcId1eghFn6S1oXM4G3SvXi7YRcKJH8ilaKmH3yR YB+0oG5x/5YNLtH/wqdBwl2dh8ZO8mAaGkdDlgf0SZKmT1L/tsW8s01fycLdBzMo 1oFwRc9O5VRCGCJaDNbXrxPa29xA3jnG9jYAtzBvg2rQqatCwdwVv7vu/YChmt7r u+AUP53cHAeL0x1DNtkOAhYtn+6nxg== =qV0z -----END PGP SIGNATURE----- --Sig_/5Y4EiYN17Ake/o_bK_4BK9E-- From debbugs-submit-bounces@debbugs.gnu.org Mon May 04 10:11:32 2020 Received: (at 40879-done) by debbugs.gnu.org; 4 May 2020 14:11:32 +0000 Received: from localhost ([127.0.0.1]:33599 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jVboi-0000nR-8L for submit@debbugs.gnu.org; Mon, 04 May 2020 10:11:32 -0400 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]:50337) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jVboX-0000n1-GW for 40879-done@debbugs.gnu.org; Mon, 04 May 2020 10:11:31 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id ACD9A6DE; Mon, 4 May 2020 10:11:15 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Mon, 04 May 2020 10:11:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= from:to:cc:subject:in-reply-to:references:date:message-id :mime-version:content-type; s=fm2; bh=9bJ2R00jpVcQT+X5/q2joUONiS mBKIhv0QXMF69Ul9I=; b=OQQVrT9Ew19oRnlphJC1kd40HtFvZiYoF0BIKMWV5a 8XvDyKSKYP1ylSSTLeBjBYZ8O8cE2YBt97XhJ9cuwwYgILSeGuvSlfflffjXAMUe Y+g7l1qS1z1Bo0/lKn5ZVJRZFRrvsFh9VUuEzzzIil4NyHo79HVnCXjhwcy67raJ lVb3SOIPbjPOvOo08/sQ+pM6hSfavYs3V/ahWkh71DImisxSsNAO3eMgNb73h1wa A7EYilhsnjtDreVB/eR5T7ao9Qzse8VfI9OdFgxrZutDuFdu6HVUE4B3cMI/UJU1 UXNc+xQKinBLxmHHvd4d6Y31fmsYCjLoEdRAo/RS4/Ug== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=9bJ2R0 0jpVcQT+X5/q2joUONiSmBKIhv0QXMF69Ul9I=; b=N8iI3cv+yslf0N5kzHcuvX 4Cp9YfJFVs88XG72ey4KhExpjkyu7Yl1KS7/T0aPwSQcgJGj96GbAuepKktKBEaX 6GX8K1cUJM9rp827K7OnpAd1CDEDIkWeBhjebJ3qi+NHAXD0W/K4xTXhr0mACfbQ jU4pkB10fxjHWrn8olHcSLTqU0kXLRE0GoCv/8gxZgeMGyoqI6FgsSbMX7x0OT41 tiNNKZsfOcJpdKdXGIg44r0wEsC3jXoiWRwZRDlO6i+BhrvovT5vyheJm0ka9rxU xAG5IFMTdH5oOZnTZl68DoClPh9Htm4BJ85KiHARn6YjBi0Yiaij45+qA05R5zSA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrjeeggdeiiecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffujghffgffkfggtgesghdtreertdertdenucfhrhhomhepofgrrhhiuhhs uceurghkkhgvuceomhgsrghkkhgvsehfrghsthhmrghilhdrtghomheqnecuggftrfgrth htvghrnheptddvgfegveegiedvffeujeeitdetvdektddugffgtdegfeeitdeikeffudfg ueffnecukfhppeekgedrvddtvddrieekrdejheenucevlhhushhtvghrufhiiigvpedtne curfgrrhgrmhepmhgrihhlfhhrohhmpehmsggrkhhkvgesfhgrshhtmhgrihhlrdgtohhm X-ME-Proxy: Received: from localhost (ti0006q161-2604.bb.online.no [84.202.68.75]) by mail.messagingengine.com (Postfix) with ESMTPA id 2C606306601F; Mon, 4 May 2020 10:11:14 -0400 (EDT) From: Marius Bakke To: Danny Milosavljevic , Ludovic =?utf-8?Q?Court?= =?utf-8?Q?=C3=A8s?= , Stefan Subject: Re: [bug#40879] [PATCH] gnu: linux-boot: Allow to mount the root file system via nfs In-Reply-To: <20200503001916.3bab3207@scratchpost.org> References: <29B6FCE4-CD82-4BEA-A00B-9D1C6EAFE4A9@vodafonemail.de> <87wo5u5sdg.fsf@gnu.org> <20200503001916.3bab3207@scratchpost.org> User-Agent: Notmuch/0.29.3 (https://notmuchmail.org) Emacs/26.3 (x86_64-pc-linux-gnu) Date: Mon, 04 May 2020 16:11:11 +0200 Message-ID: <87sggf23k0.fsf@devup.no> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 40879-done Cc: 40879-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: -1.7 (-) --=-=-= Content-Type: text/plain Danny Milosavljevic writes: > --- a/gnu/build/linux-boot.scm > +++ b/gnu/build/linux-boot.scm > @@ -534,10 +534,13 @@ upon error." > ;; The "--root=SPEC" kernel command-line option always provides a > ;; string, but the string can represent a device, a UUID, or a > ;; label. So check for all three. > > Nitpick: Comment above it is now outdated ;) Can you update it? :-) --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAl6wIn8ACgkQoqBt8qM6 VPo/1Af+PPTHCx/8bgCqUaPmpEdkyRGmQpWNOddfxmzotzvcIl0qSQWXuYUtKwzC nDhWH2MOzME4bnWuY6Ir1xNdVIhvX+khPa9FGmW03Qy1XDo0+d2Lsgg5ubayAFrn rJ/leQVdWx5n/UaKjBnBphRPLBY6ES2SBPJ6EIt+I6RNALOZB11MjCGfJU5ofMWa X52G0uB/nh601Ba5Se2S0AHoMmPZ7r4PG08Y8nMR6+Kt6X0R4xAaGk0zXiIrXu6v Fa86uB57Np0QK03uJF+D9+VYtHRs7V88b9PgX5qcWuTKCWDlr58bBN/PW9ocgyrr 0GVR2J4aTfR37vIwscvVMw4NNSWwHw== =OT4N -----END PGP SIGNATURE----- --=-=-=-- From unknown Fri Jun 20 07:26:54 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 02 Jun 2020 11:24:07 +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