guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NFS mounts


From: Ludovic Courtès
Subject: Re: NFS mounts
Date: Mon, 09 Oct 2017 09:57:22 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux)

Hi Konrad,

Konrad Hinsen <address@hidden> 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:

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)
           '())))
Can you try if it works?

However, we should provide an ‘nfs-utils-static’ package because the
above leads to a very big initrd (the closure of ‘nfs-utils’ is
~200 MiB).

HTH,
Ludo’.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]