From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthew Brooks Subject: Re: How to declare a bind mount in the "file-systems" definition? Date: Fri, 20 Mar 2020 23:14:57 -0500 Message-ID: <20200320231457.520bf473@mailbox.org> References: <20200319193123.40d51798@mailbox.org> <20200320014155.GA30652@jasmine.lan> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:54984) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jFVXU-00022K-To for help-guix@gnu.org; Sat, 21 Mar 2020 00:15:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jFVXT-0003k2-4H for help-guix@gnu.org; Sat, 21 Mar 2020 00:15:12 -0400 Received: from mout-p-102.mailbox.org ([2001:67c:2050::465:102]:26450) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jFVXS-0003h1-HI for help-guix@gnu.org; Sat, 21 Mar 2020 00:15:11 -0400 In-Reply-To: <20200320014155.GA30652@jasmine.lan> 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: Leo Famulari Cc: "help-guix@gnu.org" On Thu, 19 Mar 2020 21:41:55 -0400 Leo Famulari 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.