From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id wA01Kph4o2PBBQEAbAwnHQ (envelope-from ) for ; Wed, 21 Dec 2022 22:20:24 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id +AaHKZh4o2OqhQEAG6o9tA (envelope-from ) for ; Wed, 21 Dec 2022 22:20:24 +0100 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 F1824375BF for ; Wed, 21 Dec 2022 22:20:23 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p86VR-00075N-QB; Wed, 21 Dec 2022 16:20:05 -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 1p86VP-000756-II for bug-guix@gnu.org; Wed, 21 Dec 2022 16:20:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p86VO-0003pg-OL for bug-guix@gnu.org; Wed, 21 Dec 2022 16:20:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p86VO-0005B0-An for bug-guix@gnu.org; Wed, 21 Dec 2022 16:20:02 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#60246: Inability to add pseudo-filesystem fstab entries Resent-From: mirai Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 21 Dec 2022 21:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 60246 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 60246@debbugs.gnu.org X-Debbugs-Original-To: bug-guix Received: via spool by submit@debbugs.gnu.org id=B.167165758419885 (code B ref -1); Wed, 21 Dec 2022 21:20:02 +0000 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 From: mirai 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1671657624; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=IQA0tSOHnUoOZWkRrH2IigMfoJiG6Nsb8f9ME+lmqbY=; b=pETPabKOX11Btz8ePQ16V5K9N8ZmahbC3GtYXf3Gdmkgfkzf50dWqSNcN/ROT2JJ7e+TsU h99TkwVU0WCPzqf06X9PpU5FquHzUW3PNf17r7gkjCIm7cWcb3H5hSlDg9qRDWRUCWLgVC zqFl6L8JZorLm0W2YBwhy5Sjio8XUzmOF7CGqG/V0RE1kXPsn+jNF59nDzYpxVTk89wDyx N+GfA1HAq0LTg4jDYYBK53SqWw590FGxOZgaQAMHug3IL/zLLRfamM6hE4Xw0IzcpOBEZp xz4OyQtN8qsuED1L9gb/3AdfIkI0LeoHNOPTqEhAGzwm0zWBmfuVXvMlu/mfwQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1671657624; a=rsa-sha256; cv=none; b=J3dxnALpgt0K7flSnBS8qirqeH5tGuAyQd99hTsX8QTej0KKvlKicYUd3khzjhLVKsYCJ0 FpZNhnGUWEj47PIQt/fqNTP9WgJ48rZEbRNYcRtR+yF8U9m0egDPmIvTOfokwvVLGGPsqX 1X6vnZWqOs0xEmYj+BT1zqigxrPr+hH8Ahzs58hSz6uazNyreciNtcuqLIK97oW8MKmKNs AiPyvJEHKx+4KdJKTQyRySdt6eA/qhRHkwvOQaonaDXq7QjkCk6znDrp34KsGXwvz1FHfZ WvVdLrG6X+upmh2O/0+ZBZ404buDdmh8s+4Uz9uQQXhaZSiKYarku0F0nUd9Ww== X-Spam-Score: -3.20 X-Migadu-Queue-Id: F1824375BF Authentication-Results: aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=none X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -3.20 X-TUID: eQSZs0yEl8Rt 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.