Hi Konrad,

Konrad Hinsen <konrad.hin...@fastmail.net> 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