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 APKcAj/VUF+AWgAA0tVLHw (envelope-from ) for ; Thu, 03 Sep 2020 11:36:31 +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 qF3yOT7VUF/HKgAAbx9fmQ (envelope-from ) for ; Thu, 03 Sep 2020 11:36:30 +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 B335094060D for ; Thu, 3 Sep 2020 11:36:30 +0000 (UTC) Received: from localhost ([::1]:32846 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kDnXZ-0002U0-Da for larch@yhetil.org; Thu, 03 Sep 2020 07:36:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40088) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kDnXO-0002Rk-HC for guix-devel@gnu.org; Thu, 03 Sep 2020 07:36:18 -0400 Received: from flashner.co.il ([178.62.234.194]:45842) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kDnXL-0000h5-RY for guix-devel@gnu.org; Thu, 03 Sep 2020 07:36:18 -0400 Received: from localhost (unknown [31.210.181.177]) by flashner.co.il (Postfix) with ESMTPSA id C6328403B6 for ; Thu, 3 Sep 2020 11:35:42 +0000 (UTC) Date: Thu, 3 Sep 2020 14:35:10 +0300 From: Efraim Flashner To: guix-devel@gnu.org Subject: mounting a directory in a system container Message-ID: <20200903113510.GB906@E5400> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="eJnRUKwClWJh1Khz" Content-Disposition: inline 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: fhwl61pl4X6O --eJnRUKwClWJh1Khz Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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? (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) I also added (service udev-service-type) to my services. --=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 --eJnRUKwClWJh1Khz Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAl9Q1OcACgkQQarn3Mo9 g1HbDQ//f3bhasuVFL/7QhPO4c8K13Rt0xp+6DbfBkTNeoC0kxeZ9VkHWah6ASKp yTdBCplGcsfqzeiD1oLHkgvdU1xJl+9W2tVLffuGpz6Yd/9p12LSHB6dmmuMWDza vEKQzpfohlCrrVzaByEFUAQMDTm4gAP/AtKM2O2Z5/LiOIM4zjyDgzM8fQNv1ibM sxcHDBADqtey8wnJmUHhOCKClmH736ErBnqMu8xOljTN4XGnGakORgU1jRr2re37 uB1i7mPXt7sd5R0qDubw0YGNt4c/GPNf+IgiIbBbcHZkSkaxIYoYWq8oGZhRUWEl WlvQxwfuibsy0iZNoIaz488oDmNeFMGHIdGZiDbFryARbGvHwYAMan0sZxR9OzgE T4G6nRRjWS0TJawd4FhibFoABHymvAJ218lU4wQoxRl+B/u8TZ3Mb+YkUAKO8g7t n3RrtuoLBra8XUdDcglEi5ye38T0ZUFOnH/mSk/gggioe9twoECwYyVgGq5iay6a 2Yl188ys35k5EPpalEwWYh1aPdgPPYgPmJw1IAXa9WIvEQcKJw8dBvT0gnETcC9S 77VKklcoTwxeDD1w2AKu0JCQ5LgwVaB3ScvBfvpGyrSAme+vL9mgf4qpNX1tSgjb egUBWkhyvQuVAsEzJO0VRZ8OqyULz4a5+B/gFm5jCzjh46KbCPs= =yEKJ -----END PGP SIGNATURE----- --eJnRUKwClWJh1Khz--