From mboxrd@z Thu Jan 1 00:00:00 1970 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 Message-ID: <20200322221210.GA20590@jasmine.lan> References: <20200319193123.40d51798@mailbox.org> <20200320014155.GA30652@jasmine.lan> <20200320231457.520bf473@mailbox.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:48696) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jG8pL-0002zk-5o for help-guix@gnu.org; Sun, 22 Mar 2020 18:12:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jG8pK-0004xt-19 for help-guix@gnu.org; Sun, 22 Mar 2020 18:12:15 -0400 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]:43613) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jG8pJ-0004xj-RV for help-guix@gnu.org; Sun, 22 Mar 2020 18:12:13 -0400 Content-Disposition: inline In-Reply-To: <20200320231457.520bf473@mailbox.org> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane-mx.org@gnu.org Sender: "Help-Guix" To: Matthew Brooks Cc: "help-guix@gnu.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