From unknown Sun Jun 15 13:01:10 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#60246 <60246@debbugs.gnu.org> To: bug#60246 <60246@debbugs.gnu.org> Subject: Status: Inability to add pseudo-filesystem fstab entries Reply-To: bug#60246 <60246@debbugs.gnu.org> Date: Sun, 15 Jun 2025 20:01:10 +0000 retitle 60246 Inability to add pseudo-filesystem fstab entries reassign 60246 guix submitter 60246 mirai severity 60246 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 21 16:19:44 2022 Received: (at submit) by debbugs.gnu.org; 21 Dec 2022 21:19:44 +0000 Received: from localhost ([127.0.0.1]:54011 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p86V6-0005Af-9m for submit@debbugs.gnu.org; Wed, 21 Dec 2022 16:19:44 -0500 Received: from lists.gnu.org ([209.51.188.17]:59994) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p86V4-0005AZ-DI for submit@debbugs.gnu.org; Wed, 21 Dec 2022 16:19:42 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p86V4-00072w-83 for bug-guix@gnu.org; Wed, 21 Dec 2022 16:19:42 -0500 Received: from smtpm3.myservices.hosting ([185.26.105.234]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p86V2-0003na-Dh for bug-guix@gnu.org; Wed, 21 Dec 2022 16:19:41 -0500 Received: from mail1.netim.hosting (unknown [185.26.106.172]) by smtpm3.myservices.hosting (Postfix) with ESMTP id 6071E20F32 for ; Wed, 21 Dec 2022 22:19:35 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mail1.netim.hosting (Postfix) with ESMTP id 0A51A80098 for ; Wed, 21 Dec 2022 22:19:35 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mail1.netim.hosting Received: from mail1.netim.hosting ([127.0.0.1]) by localhost (mail1-1.netim.hosting [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id I0cSg8Xqd1M9 for ; Wed, 21 Dec 2022 22:19:34 +0100 (CET) Received: from [192.168.1.239] (unknown [10.192.1.83]) (Authenticated sender: lumen@makinata.eu) by mail1.netim.hosting (Postfix) with ESMTPSA id 9608180096 for ; Wed, 21 Dec 2022 22:19:34 +0100 (CET) Message-ID: Date: Wed, 21 Dec 2022 21:19:34 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.1 Content-Language: en-US To: bug-guix From: mirai Subject: Inability to add pseudo-filesystem fstab entries Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=185.26.105.234; envelope-from=mirai@makinata.eu; helo=smtpm3.myservices.hosting 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_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) An entry of the form: --8<---------------cut here---------------start------------->8--- (file-system (mount-point "/media/foo-mount") (create-mount-point? #t) (mount? #f) (device "none") (type "overlay") (flags '(no-atime no-dev no-suid no-exec read-only)) (options (string-append "lowerdir=" (string-join '("/srv/foo/overlays/bar" "/srv/foo/overlays/baz") ":"))) (check? #f)) --8<---------------cut here---------------end--------------->8--- Does not result in a fstab entry line, which makes it impossible to mount. According to Guix docs, this shouldn't be the case: --8<---------------cut here---------------start------------->8--- mount? (default: #t) This value indicates whether to automatically mount the file system when the system is brought up. When set to #f, the file system gets an entry in /etc/fstab (read by the mount command) but is not automatically mounted. --8<---------------cut here---------------end--------------->8--- Looking at gnu/services/base.scm there's this snippet: --8<---------------cut here---------------start------------->8--- (define (file-system-fstab-entries file-systems) "Return the subset of @var{file-systems} that should have an entry in @file{/etc/fstab}." ;; /etc/fstab is about telling fsck(8), mount(8), and umount(8) about ;; relevant file systems they'll have to deal with. That excludes "pseudo" ;; file systems. ;; ;; In particular, things like GIO (part of GLib) use it to determine the set ;; of mounts, which is then used by graphical file managers and desktop ;; environments to display "volume" icons. Thus, we really need to exclude ;; those pseudo file systems from the list. (remove (lambda (file-system) (or (member (file-system-type file-system) %pseudo-file-system-types) (memq 'bind-mount (file-system-flags file-system)))) file-systems)) --8<---------------cut here---------------end--------------->8--- That seems to remove such pseudo-fs entries, regardless of 'mount?' value. This is not a "documentation" bug, as there are valid uses for having pseudo-fs entries. Right now I'm trying to add an overlayfs mount that is layered over a NFS system and Guix doesn't exactly deal very well with mounting NFS as it depends on networking. To sidestep this, I am mounting the NFS volume through a simple-service that puts a dependency on networking. >From here the fstab problem begins: since it can't be mounted at boot "conventionally", it is set as mount? #f with the intention to mount it later via "mount /media/foo-mount" after NFS volume is ready but since this entry does not end up in /etc/fstab, there's no way to mount it. From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 21 18:24:25 2022 Received: (at submit) by debbugs.gnu.org; 21 Dec 2022 23:24:25 +0000 Received: from localhost ([127.0.0.1]:54551 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p88Rl-0006P9-C5 for submit@debbugs.gnu.org; Wed, 21 Dec 2022 18:24:25 -0500 Received: from lists.gnu.org ([209.51.188.17]:57716) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p88Ri-0006P3-Ev for submit@debbugs.gnu.org; Wed, 21 Dec 2022 18:24:22 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p88Ri-0003Jp-8e for bug-guix@gnu.org; Wed, 21 Dec 2022 18:24:22 -0500 Received: from tobias.gr ([2a02:c205:2020:6054::1]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p88Rg-0000AN-Hz for bug-guix@gnu.org; Wed, 21 Dec 2022 18:24:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; s=2018; bh=QZXEQxngU36ov px48z0j/4Iktr1Wcq3W+/S+Dche/ZE=; h=in-reply-to:date:subject:cc:to: from:references; d=tobias.gr; b=D5XYxEk0HD8Szppk5JrmVyUOk5dO8fVOHUzkIW bK0lv4dDgnYezoAyfdKjUAeEJSgyJZyQJ87lWIpznojeQyUvoYu5t/uyTmDOI6UXjua2Su oXwbtceMHkAru6Sw52FAqLQzxfteX4NiJQeSmkatPmBlI9qvVuPhv1LawcccGq8OX3hEKy R4Atst/HTqlHApty1cCGg93CK10AbdVE4VEcm8c0oQ1uIuK1emvvnLFPpkA+uGY+phEU2L hBuKrwVFTA13zXWT/kaBtu1HX9OwdTnjeBVd0uepbk7lqL37QbHhA5BgUo7l29K6WlCbyP UuV1if8BSAI9AAosUtmNbICg== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id 75eb1956 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Wed, 21 Dec 2022 23:24:12 +0000 (UTC) References: From: Tobias Geerinckx-Rice To: mirai Subject: Re: bug#60246: Inability to add pseudo-filesystem fstab entries Date: Wed, 21 Dec 2022 23:50:08 +0100 In-reply-to: BIMI-Selector: v=BIMI1; s=default; Message-ID: <87cz8c8hoc.fsf@nckx> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: pass client-ip=2a02:c205:2020:6054::1; envelope-from=me@tobias.gr; helo=tobias.gr X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.6 (-) X-Debbugs-Envelope-To: submit Cc: 60246@debbugs.gnu.org, bug-guix@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.6 (--) --=-=-= Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Hi Bruno, mirai =E5=86=99=E9=81=93=EF=BC=9A > Does not result in a fstab entry line, which makes it impossible=20 > to mount. According to Guix docs, this shouldn't be the case: Hm, yes, strictly speaking that is so. It feels a bit weird to add or omit fstab entries based on MOUNT?=20 being true or false, but=E2=80=A6 it seems like a good proxy for what the=20 user *means* in both cases? If the following is really true, we have little other choice: > ;; In particular, things like GIO (part of GLib) use it to=20 > determine the set > ;; of mounts, which is then used by graphical file managers and=20 > desktop > ;; environments to display "volume" icons. Thus, we really need=20 > to exclude > ;; those pseudo file systems from the list. so I wouldn't be opposed to it. > %pseudo-file-system-types) I disagree that overlayfs is a =E2=80=98pseudo-file-system=E2=80=99, any mo= re than=20 NFS would be. It should not be in that list to begin with. And this is where it gets fun: apparently=E2=80=A6 it was added at my=20 request=E2=80=BD :-) Or at least Ludo's interpretation of that requests, in commit=20 df1eaffc3: file-systems: Expound '%pseudo-file-system-types'. =20=20=20=20 Reported by Tobias Geerinckx-Rice . =20=20=20=20 * gnu/system/file-systems.scm (%pseudo-file-system-types): Add "debugfs", "efivarfs", "hugetlbfs", "overlay", and=20 "securityfs". Even in this list, =E2=80=98overlayfs=E2=80=99 has huge=20 one-of-these-is-not-like-the-others energy, so I wonder what the=20 reason was. I don't remember. I'd happily revert it if I didn't suspect that it was to work=20 around some real (installer?) bug=E2=80=A6 Kind regards, T G-R --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIMEARYKACsWIQT12iAyS4c9C3o4dnINsP+IT1VteQUCY6OVgw0cbWVAdG9iaWFz LmdyAAoJEA2w/4hPVW15QPMA/37Tm7M3GBIAt5E5INuIPB/MS9y4D5v2YQnQ6WjA jXVmAQCQWm0EVtWJkfq7wWy6pwIJweEwzn5KUCVu7tiWnuk7AA== =qh5I -----END PGP SIGNATURE----- --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 21 18:38:10 2022 Received: (at submit) by debbugs.gnu.org; 21 Dec 2022 23:38:10 +0000 Received: from localhost ([127.0.0.1]:54625 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p88f4-0006YL-CF for submit@debbugs.gnu.org; Wed, 21 Dec 2022 18:38:10 -0500 Received: from lists.gnu.org ([209.51.188.17]:37926) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p88f1-0006YC-5g for submit@debbugs.gnu.org; Wed, 21 Dec 2022 18:38:07 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p88f0-0004z5-RZ for bug-guix@gnu.org; Wed, 21 Dec 2022 18:38:06 -0500 Received: from smtpmciv2.myservices.hosting ([185.26.107.238]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p88ez-0002o1-Aa for bug-guix@gnu.org; Wed, 21 Dec 2022 18:38:06 -0500 Received: from mail1.netim.hosting (unknown [185.26.106.172]) by smtpmciv2.myservices.hosting (Postfix) with ESMTP id 8142C20D4F; Thu, 22 Dec 2022 00:38:02 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mail1.netim.hosting (Postfix) with ESMTP id 21A9C80096; Thu, 22 Dec 2022 00:38:02 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mail1.netim.hosting Received: from mail1.netim.hosting ([127.0.0.1]) by localhost (mail1-1.netim.hosting [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id IMdDeyMjlUM9; Thu, 22 Dec 2022 00:37:46 +0100 (CET) Received: from [192.168.1.239] (unknown [10.192.1.83]) (Authenticated sender: lumen@makinata.eu) by mail1.netim.hosting (Postfix) with ESMTPSA id 7A6A980093; Thu, 22 Dec 2022 00:37:46 +0100 (CET) Message-ID: <4da5e6b4-c5d3-94ba-b0ac-9b8447171482@makinata.eu> Date: Wed, 21 Dec 2022 23:37:45 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.1 Subject: Re: bug#60246: Inability to add pseudo-filesystem fstab entries Content-Language: en-US To: Tobias Geerinckx-Rice References: <87cz8c8hoc.fsf@nckx> From: mirai In-Reply-To: <87cz8c8hoc.fsf@nckx> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=185.26.107.238; envelope-from=mirai@makinata.eu; helo=smtpmciv2.myservices.hosting X-Spam_score_int: -29 X-Spam_score: -3.0 X-Spam_bar: --- X-Spam_report: (-3.0 / 5.0 requ) BAYES_00=-1.9, NICE_REPLY_A=-1.148, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit Cc: 60246@debbugs.gnu.org, bug-guix@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Hi, On 2022-12-21 22:50, Tobias Geerinckx-Rice wrote: > > If the following is really true, we have little other choice: > >> ;; In particular, things like GIO (part of GLib) use it to determine the set >> ;; of mounts, which is then used by graphical file managers and desktop >> ;; environments to display "volume" icons.  Thus, we really need to exclude >> ;; those pseudo file systems from the list. If that's the case, an approach for these "unspeakable" file-systems whose presence must not be recorded in fstab would be to at least "generate" some file-system- shepherd services (and have them enabled/disabled according to mount? value). This way there's at least a way to "start" these mounts rather than them ending up in the /dev/null abyss. From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 21 18:43:39 2022 Received: (at submit) by debbugs.gnu.org; 21 Dec 2022 23:43:39 +0000 Received: from localhost ([127.0.0.1]:54660 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p88kM-0006cM-TC for submit@debbugs.gnu.org; Wed, 21 Dec 2022 18:43:39 -0500 Received: from lists.gnu.org ([209.51.188.17]:56410) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p88kK-0006cG-0R for submit@debbugs.gnu.org; Wed, 21 Dec 2022 18:43:36 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p88kJ-0007Nj-EJ for bug-guix@gnu.org; Wed, 21 Dec 2022 18:43:35 -0500 Received: from tobias.gr ([2a02:c205:2020:6054::1]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p88kH-0003pd-P5 for bug-guix@gnu.org; Wed, 21 Dec 2022 18:43:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; s=2018; bh=M6kf5/Y2IwQxl 5P9uevsKuirdXJh67PmRYdXzSXkkfQ=; h=in-reply-to:date:subject:cc:to: from:references; d=tobias.gr; b=l6xZqpnb4Ng5Hc6Zz0qWVQcNoVIFjqJjllw5Ud cvbKNm7ApNfdVXrE+NLtHXU1KsLaIpoe6jaXT5DwdohUr8UfLh7laxpcql/FQmcGibVRj1 K4ToYDkIeXYFLYwJoxvS+yjQvndidINgCHRgpDpOw9bDnEnBt+57bPOaQCuOrFytd2tE63 cMw8PjsCtTHZtGWcjTLrxhuAUruY4jgUkNAobmv/wenpFYMaxRmHGmJ46kFiV0Vbn0rIh9 cmP8HLkh2KmQoq2LQYmMEbqkTu5d9Z6KpRFLg/Dg+utTaK3FI8OAQRIFb2RxnJCiAzhH6h RMEcq+BoyByhG0pB8kZR6HpA== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id 4a936629 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Wed, 21 Dec 2022 23:43:24 +0000 (UTC) References: <87cz8c8hoc.fsf@nckx> <4da5e6b4-c5d3-94ba-b0ac-9b8447171482@makinata.eu> From: Tobias Geerinckx-Rice To: mirai Subject: Re: bug#60246: Inability to add pseudo-filesystem fstab entries Date: Thu, 22 Dec 2022 00:41:25 +0100 In-reply-to: <4da5e6b4-c5d3-94ba-b0ac-9b8447171482@makinata.eu> BIMI-Selector: v=BIMI1; s=default; Message-ID: <878rj08gsc.fsf@nckx> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: pass client-ip=2a02:c205:2020:6054::1; envelope-from=me@tobias.gr; helo=tobias.gr X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.6 (-) X-Debbugs-Envelope-To: submit Cc: 60246@debbugs.gnu.org, bug-guix@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.6 (--) --=-=-= Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable mirai =E5=86=99=E9=81=93=EF=BC=9A > This way there's at least a way to "start" these mounts rather=20 > than > them ending up in the /dev/null abyss. A non-standard and hard to discover way, sure. I liked the (unless mount? (add-to-fstab)) suggestion better. (I'm taking the comment at face value=E2=80=94I'd have suggested adding=20 them all to fstab otherwise.) Kind regards, T G-R --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIMEARYKACsWIQT12iAyS4c9C3o4dnINsP+IT1VteQUCY6OaBQ0cbWVAdG9iaWFz LmdyAAoJEA2w/4hPVW15vDUBAMnkr7i6uD/yUpJamw5uKtXqjdVqha/L+Gk/iL0u kQ+RAP9mEqOyq5HDz5RVf/HTux6050fmIrhrAVZ/w5lXOwv0Cg== =3Pn3 -----END PGP SIGNATURE----- --=-=-=--