From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: NFS mounts Date: Mon, 09 Oct 2017 09:57:22 +0200 Message-ID: <87shes92jh.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39171) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e1SwK-0006qf-Cf for guix-devel@gnu.org; Mon, 09 Oct 2017 03:57:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e1SwG-0003Ex-Fw for guix-devel@gnu.org; Mon, 09 Oct 2017 03:57:28 -0400 In-Reply-To: (Konrad Hinsen's message of "Fri, 6 Oct 2017 17:06:03 +0200") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: Konrad Hinsen Cc: Guix-devel --=-=-= Content-Type: text/plain Hi Konrad, Konrad Hinsen skribis: > does anyone have an example of a system configuration that mounts an NFS > share at boot time? It seems that this requires some extra services and > also some additional packages (to have mount.nfs for example). Indeed, the initrd would need an extra package, like this: --=-=-= Content-Type: text/x-patch Content-Disposition: inline diff --git a/gnu/system/linux-initrd.scm b/gnu/system/linux-initrd.scm index 969a89266..76ec3b8a6 100644 --- a/gnu/system/linux-initrd.scm +++ b/gnu/system/linux-initrd.scm @@ -32,6 +32,7 @@ #:use-module (gnu packages compression) #:use-module (gnu packages disk) #:use-module (gnu packages linux) + #:use-module (gnu packages nfs) #:use-module (gnu packages guile) #:use-module ((gnu packages make-bootstrap) #:select (%guile-static-stripped)) @@ -231,6 +232,9 @@ FILE-SYSTEMS." ,@(if (find (file-system-type-predicate "btrfs") file-systems) (list btrfs-progs/static) '()) + ,@(if (find (file-system-type-predicate "nfs") file-systems) + (list nfs-utils) + '()) ,@(if volatile-root? (list unionfs-fuse/static) '()))) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Can you try if it works? However, we should provide an =E2=80=98nfs-utils-static=E2=80=99 package be= cause the above leads to a very big initrd (the closure of =E2=80=98nfs-utils=E2=80= =99 is ~200=C2=A0MiB). HTH, Ludo=E2=80=99. --=-=-=--