unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Kenny Ballou <kb@devnulllabs.io>
To: help-guix@gnu.org
Subject: auto-mount NFS file-systems
Date: Wed, 04 May 2022 19:09:49 -0600	[thread overview]
Message-ID: <87pmkskbz2.fsf@devnulllabs.io> (raw)


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	other threads:[~2022-05-05  4:27 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87pmkskbz2.fsf@devnulllabs.io \
    --to=kb@devnulllabs.io \
    --cc=help-guix@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).