unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Leo Famulari <leo@famulari.name>
To: Matthew Brooks <matthewfbrooks@mailbox.org>
Cc: "help-guix@gnu.org" <help-guix@gnu.org>
Subject: Re: How to declare a bind mount in the "file-systems" definition?
Date: Sun, 22 Mar 2020 18:12:10 -0400	[thread overview]
Message-ID: <20200322221210.GA20590@jasmine.lan> (raw)
In-Reply-To: <20200320231457.520bf473@mailbox.org>

On Fri, Mar 20, 2020 at 11:14:57PM -0500, Matthew Brooks wrote:
> 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

If you make device a string it is assumed to be a device node.

Looking in the manual for mentions of bind-mount I found the
documentation of %immutable-store, which is a bind-mounted filesystem
that exists by default in Guix System. It's implemented in
'gnu/systems/file-systems.scm' and hopefully provides a helpful example:

https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/system/file-systems.scm?h=v1.0.1#n346

  reply	other threads:[~2020-03-22 22:12 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
2020-03-22 22:12     ` Leo Famulari [this message]
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=20200322221210.GA20590@jasmine.lan \
    --to=leo@famulari.name \
    --cc=help-guix@gnu.org \
    --cc=matthewfbrooks@mailbox.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).