help-guix
[Top][All Lists]
Advanced

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

Re: How to declare a bind mount in the "file-systems" definition?


From: Leo Famulari
Subject: Re: How to declare a bind mount in the "file-systems" definition?
Date: Sun, 22 Mar 2020 18:12:10 -0400

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 via email to

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