From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 0DTjDTXXUF8seAAA0tVLHw (envelope-from ) for ; Thu, 03 Sep 2020 11:44:53 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id uOzdCTXXUF/GKwAAbx9fmQ (envelope-from ) for ; Thu, 03 Sep 2020 11:44:53 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id C085C94021E for ; Thu, 3 Sep 2020 11:44:52 +0000 (UTC) Received: from localhost ([::1]:37536 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kDnff-000553-LW for larch@yhetil.org; Thu, 03 Sep 2020 07:44:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41714) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kDnfR-00053Y-CG for guix-devel@gnu.org; Thu, 03 Sep 2020 07:44:37 -0400 Received: from flashner.co.il ([178.62.234.194]:45860) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kDnfP-0001ku-Qk for guix-devel@gnu.org; Thu, 03 Sep 2020 07:44:37 -0400 Received: from localhost (unknown [31.210.181.177]) by flashner.co.il (Postfix) with ESMTPSA id 83981403B6 for ; Thu, 3 Sep 2020 11:44:34 +0000 (UTC) Date: Thu, 3 Sep 2020 14:44:01 +0300 From: Efraim Flashner To: guix-devel@gnu.org Subject: Re: mounting a directory in a system container Message-ID: <20200903114401.GC906@E5400> References: <20200903113510.GB906@E5400> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="2JFBq9zoW8cOFH7v" Content-Disposition: inline In-Reply-To: <20200903113510.GB906@E5400> X-PGP-Key-ID: 0x41AAE7DCCA3D8351 X-PGP-Key: https://flashner.co.il/~efraim/efraim_flashner.asc X-PGP-Fingerprint: A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Received-SPF: pass client-ip=178.62.234.194; envelope-from=efraim@flashner.co.il; helo=flashner.co.il X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/03 07:35:43 X-ACL-Warn: Detected OS = ??? X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Spam-Score: -2.61 X-TUID: +Zg6pn0kkBwk --2JFBq9zoW8cOFH7v Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Sep 03, 2020 at 02:35:10PM +0300, Efraim Flashner wrote: > I really like the --expose and --share options from guix system vm but I > really would prefer to use a system container (mostly for the shared > resources). I tried adding the directory in the file-systems section of > my OS-config but it just failed to mount. Any suggestions? >=20 > (file-systems (cons > (file-system > (device "/data") > (mount-point "/data") > (type "none") > (flags '(read-only bind-mount)) > (check? #f) > (create-mount-point? #t)) > %base-file-systems) >=20 > I also added (service udev-service-type) to my services. >=20 Thanks everyone for being my rubber ducky! On a whim I checked the manual and it mentioned --share and --expose for containers also and it worked for me. It would appear that the 'guix system --help' text isn't complete. --=20 Efraim Flashner =D7=90=D7=A4=D7=A8=D7=99=D7=9D = =D7=A4=D7=9C=D7=A9=D7=A0=D7=A8 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --2JFBq9zoW8cOFH7v Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAl9Q1wEACgkQQarn3Mo9 g1EN+BAAmcdLQ0t3+c0054PZwy6N11ZBvMNtKXILWfNYWckVYwYnBW7cVZ4PQ9eD FuWC6nH4wVaVHCCElzgFtjhqhqBJLIG69k3UJdFACupoBHLhJeR4ZMIqGhCmgJ3o 7LGXi+F2E+N4PTxqh5q7t+UVe88vC4giO9hxU2qKf9FZo0cFn9xCLxil2hVC8O9m p2+6YwI243jMzuVd8XErQxI0vBufD52ftvAhtdaapWJY5IGzJyhmO4CAqQ5AwFvF CICOAvONPKpIMnwOI5+CGS/ZWMPZlRSx/1JUZj9F+0yZ4hVjJQ5lx7C7TsbYBBOy 3YWyZGtdq7cny1L6Wmgxk0mrqW/upCGvOOBrxvE2j8495tsAZl1rFmYqe3Y8MVQH tY5PLxxsy69FtAQAeeA3KdibCgABomwMY0GkSe8qdW3qjqmlNrskD5W5hSJXVFdY BNShU/t61D6+18TVh5xz8qIX3LoVfn3Mm7j28N4O2sAjE8fYKPBN2lNTBHeMGIT7 2tbcVJes8F4rU0oM7mzmqmIPrJ7vb5bnoBy3EE0G4Ymm5CH8td1cU1qXDOgNhmMF AYNcLplHI3hS8zu0urWqtN9iK3wpYdjfFG62e4PQWe4+6MPIDW1CIJZJvMVBpFLP 6XAjSLbHdxm5T+uJHRyQ8MVMNFntS9AIB47Pde6JPVGGjVqc9JY= =Vs8g -----END PGP SIGNATURE----- --2JFBq9zoW8cOFH7v--