From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?G=C3=A1bor_Boskovits?= Subject: Re: How to declare a bind mount in the "file-systems" definition? Date: Sun, 29 Mar 2020 11:36:57 +0200 Message-ID: References: <20200319193123.40d51798@mailbox.org> <20200320014155.GA30652@jasmine.lan> <20200320231457.520bf473@mailbox.org> <20200322221210.GA20590@jasmine.lan> <20200326101032.50ba3d9c@mailbox.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:36017) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jIUNT-0005BQ-FE for help-guix@gnu.org; Sun, 29 Mar 2020 05:37:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jIUNS-000714-6N for help-guix@gnu.org; Sun, 29 Mar 2020 05:37:11 -0400 Received: from mail-wr1-x433.google.com ([2a00:1450:4864:20::433]:46875) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jIUNR-00070P-V2 for help-guix@gnu.org; Sun, 29 Mar 2020 05:37:10 -0400 Received: by mail-wr1-x433.google.com with SMTP id j17so17207305wru.13 for ; Sun, 29 Mar 2020 02:37:09 -0700 (PDT) In-Reply-To: <20200326101032.50ba3d9c@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" Hello, I am glad that this finally worked! Matthew Brooks ezt =C3=ADrta (id=C5=91pont: 20= 20. m=C3=A1rc. 26., Cs, 16:11): > > On Sun, 22 Mar 2020 18:12:10 -0400 > Leo Famulari wrote: > > > 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=3Dv1.0.1#n346 > > Thanks! I was able to get it working from that example! > > For anyone else in the future who might want the info, here's what I did: > > first I had to define these two things before the operating system sectio= n: > > >(define data-drive > > (file-system > > (device (uuid "UUID goes here")) > > (mount-point "/path-to-spinning-disk-goes-here") > > (type "ext4"))) > > > >(define (%tmp-directory) "/path-to-spinning-disk-goes-here/tmp") > > Then, in the file-systems list I added the following: > > >(file-systems (cons* > > > > ...... > > > > data-drive > > > > (file-system > > (device (%tmp-directory)) > > (mount-point "/tmp") > > (type "none") > > (flags '(bind-mount)) > > (dependencies (list data-drive)) > > ) > > > > %base-file-systems)) > Could you consider adding an example to the cookbook? I believe that would be a great addition. Best regards, g_bor --=20 OpenPGP Key Fingerprint: 7988:3B9F:7D6A:4DBF:3719:0367:2506:A96C:CF63:0B21