help-guix
[Top][All Lists]
Advanced

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

auto-mount NFS file-systems


From: Kenny Ballou
Subject: auto-mount NFS file-systems
Date: Wed, 04 May 2022 19:09:49 -0600
User-agent: mu4e 1.6.10; emacs 28.1.50

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!:



reply via email to

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