From: Matthew Brooks <matthewfbrooks@mailbox.org>
To: Leo Famulari <leo@famulari.name>
Cc: "help-guix@gnu.org" <help-guix@gnu.org>
Subject: Re: How to declare a bind mount in the "file-systems" definition?
Date: Fri, 20 Mar 2020 23:14:57 -0500 [thread overview]
Message-ID: <20200320231457.520bf473@mailbox.org> (raw)
In-Reply-To: <20200320014155.GA30652@jasmine.lan>
On Thu, 19 Mar 2020 21:41:55 -0400
Leo Famulari <leo@famulari.name> wrote:
> You would add (flags '(bind-mount)) to the Scheme definition of
> file-system.
Yes, that much is mentioned, but defining a bind mount also requires other things which are not mentioned in the manual page. Such as how to specify the source directory, what "device" and "type" should be set to, and probably a few other things that I'm forgetting.
For example, "device" appears to be a required field, but the manual says it may only be:
>a file system label, a file system UUID, or the name of a /dev node
and setting it to a folder doesn't appear to be a valid option, according to the manual.
I played around a bit with trying to get a bind mount defined, but the only thing I was able to come up with that didn't error when reconfiguring was:
> (file-system
> (device "/spinning-disk-drive-goes-here/tmp")
> (mount-point "/tmp")
> (type "bind")
> (flags '(bind-mount))
> )
but it failed on boot with:
>No file system check procedure for /spinning-disk-drive-goes-here/tmp: skipping
and lots of services failed to start, and I had to reboot and revert to the previous config.
There is clearly something else required, but it doesn't appear to be in the manual, and I have no idea how to get guix to give me any helpful info about what all options are actually allowed.
> There's an example in this discussion:
>
> https://lists.gnu.org/archive/html/help-guix/2016-11/msg00062.html
>
> Make sure to read the reply from Ludovic which completes the picture.
Thanks. That does seem to explain how to set up dependencies pretty clearly.
next prev parent reply other threads:[~2020-03-21 4:15 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-20 0:31 How to declare a bind mount in the "file-systems" definition? Matthew Brooks
2020-03-20 1:41 ` Leo Famulari
2020-03-21 4:14 ` Matthew Brooks [this message]
2020-03-22 22:12 ` Leo Famulari
2020-03-26 15:10 ` Matthew Brooks
2020-03-29 9:36 ` Gábor Boskovits
2020-03-29 20:01 ` Matthew Brooks
2020-04-08 16:52 ` Leo Famulari
2020-04-22 17:03 ` Matthew Brooks
2020-04-22 19:52 ` Leo Famulari
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=20200320231457.520bf473@mailbox.org \
--to=matthewfbrooks@mailbox.org \
--cc=help-guix@gnu.org \
--cc=leo@famulari.name \
/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).