all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* auto-mount NFS file-systems
@ 2022-05-05  1:09 Kenny Ballou
  0 siblings, 0 replies; only message in thread
From: Kenny Ballou @ 2022-05-05  1:09 UTC (permalink / raw)
  To: help-guix


Dear list,

I am attempting to auto mount some NFS shares on a Guix system, but
cannot seem to get it to boot past the NFS mounts.  On another system,
I'm able to have the NFS shares auto mount due to a dependency on the
encrypted root file system (mapped-devices).  However, the system where
this does not work has no mapped-devices.

Specifically, for the system that works, the relevant records look as follows:

```
...
(mapped-devices
    (list (mapped-device
           (source (list "/dev/sda1" "/dev/sdb1"))
           (target "/dev/md1")
           (type raid-device-mapping))
          (mapped-device
           (source (uuid "4808204d-0116-4234-b931-6cc6161d5f3b"))
           (target "luks-4808204d-0116-4234-b931-6cc6161d5f3b")
           (type luks-device-mapping))
          (mapped-device
           (source (uuid "ddb3da26-ac44-4f4a-b01a-6b21967df63d"))
           (target "luks-ddb3da26-ac44-4f4a-b01a-6b21967df63d")
           (type luks-device-mapping))))

(file-systems (append
               (list (file-system
                      (device "/dev/mapper/luks-ddb3da26-ac44-4f4a-b01a-6b21967df63d")
                      (mount-point "/")
                      (type "ext4")
                      (dependencies mapped-devices))
                     (file-system
                      (device "/dev/mapper/luks-4808204d-0116-4234-b931-6cc6161d5f3b")
                      (mount-point "/home")
                      (type "xfs")
                      (dependencies mapped-devices))
                     (file-system
                      (mount-point "/media/kb/documents")
                      (device "baal:/srv/documents")
                      (type "nfs4")
                      (mount-may-fail? #t)
                      (mount? #t)
                      (create-mount-point? #t)
                      (options nfs-mount-options)
                      (dependencies mapped-devices))
                      ...)))

```

However, on the system that is not working:

```
;; (mapped-devices '())
(file-systems (append
                (list (file-system
                        (device (uuid "5a0e26fe-8cc4-4ded-9bd9-9930228b6674"))
                        (mount-point "/")
                        (type "ext4"))
                      (file-system
                        (device (uuid "B7E7-D5B6" 'fat))
                        (mount-point "/boot/efi")
                        (type "vfat"))
                      (file-system
                        (mount-point "/media/kb/music")
                        (device "baal:/srv/music")
                        (type "nfs4")
                        (mount-may-fail? #t)
                        (mount? #t)
                        (create-mount-point? #t)
                        (options nfs-mount-options)
                        (dependencies '()))
                        ...)))
```

Clearly, the NFS shares need a dependency, but it's not clear from the
documentation exactly what to put in the list in this case.  I've tried
copying, say the root entry wholesale, but get an error that the needed
file system is not provided by any service.

My gratitude in advance.

-Kenny

-- 
:SIG:!0xB0CAA28A02958308!:


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-05-05  4:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-05  1:09 auto-mount NFS file-systems Kenny Ballou

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.