From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthew Brooks Subject: How to declare a bind mount in the "file-systems" definition? Date: Thu, 19 Mar 2020 19:31:23 -0500 Message-ID: <20200319193123.40d51798@mailbox.org> 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]:52779) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jF5ZZ-0004wO-0a for help-guix@gnu.org; Thu, 19 Mar 2020 20:31:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jF5ZX-0000hZ-Ea for help-guix@gnu.org; Thu, 19 Mar 2020 20:31:36 -0400 Received: from mout-p-102.mailbox.org ([2001:67c:2050::465:102]:51178) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jF5ZW-0000by-VH for help-guix@gnu.org; Thu, 19 Mar 2020 20:31:35 -0400 Received: from smtp1.mailbox.org (smtp1.mailbox.org [IPv6:2001:67c:2050:105:465:1:1:0]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by mout-p-102.mailbox.org (Postfix) with ESMTPS id 48k4TF3024zKmMG for ; Fri, 20 Mar 2020 01:31:29 +0100 (CET) Received: from smtp1.mailbox.org ([80.241.60.240]) by hefe.heinlein-support.de (hefe.heinlein-support.de [91.198.250.172]) (amavisd-new, port 10030) with ESMTP id AT5vmmr9HeDU for ; Fri, 20 Mar 2020 01:31:26 +0100 (CET) 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: "help-guix@gnu.org" My boot disk is an SSD, and to save some wear I'd like to bind mount a folder on one of my spinning disk drives to /tmp. The online manual does mention that bind-mount exists, but doesn't actually seem to have any examples of defining a bind mount. For reference, I'm trying to automatically bind mount "/spinning-disk-drive-goes-here/tmp" to "/tmp". The manual also doesn't give any examples of defining a dependency so that the base drive gets mounted and then the bind mount will only be mounted after. Do I define the "spinning-disk-drive-goes-here" file system inside the dependency block and not in the main list of file systems, or do I define it in the usual place and then add some unique ID to the dependency block, or something else? Anyway, thanks for your help, and for all the work put into guixSD!