Message ID | cover.1741241800.git.hako@ultrarare.space |
---|---|
Headers |
Return-Path: <guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org> X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 80D8A27BBEA; Thu, 6 Mar 2025 06:24:24 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-6.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,FROM_SUSPICIOUS_NTLD,MAILING_LIST_MULTI, PDS_OTHER_BAD_TLD,RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2, RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE, SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 3526D27BBE2 for <patchwork@mira.cbaines.net>; Thu, 6 Mar 2025 06:24:24 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <guix-patches-bounces@gnu.org>) id 1tq4eQ-0000lO-Qt; Thu, 06 Mar 2025 01:24:12 -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 <Debian-debbugs@debbugs.gnu.org>) id 1tq4eN-0000d3-0Z for guix-patches@gnu.org; Thu, 06 Mar 2025 01:24:07 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1tq4eM-0004JU-Ld; Thu, 06 Mar 2025 01:24:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:From:To:In-Reply-To:References:Subject; bh=7UVe/F6XQFKaBcwvplnLvV1vNrzMxCT1uzXlQrvP4A0=; b=hiHyJ0qE3aXj7ODBzOw5D8ln4EVH8QirtkWhYXfaBcC+7VkPbdrneMNZAdk2DUtpHFphD4ub2d5Hpt6UFNKt0ZLvvkcChHpesVxqt6CaRWl4B0EUZbMOlNcn7nx4gZ7Y21vjuf80riEUCK5Hh9A6lQEjkrOlbcG7nU3p3XRt3pRe+XeCu2TxFRXI5LcRXgZrvmKKC7XxHPlqRH3jgUShE9WzTdQPQ/xanPB3Rdd/25rmFfcR45YZn6sx5JGVBWLchlbV67eNn8YHFxuHmW5kgwg4dSMIlAgnYLxUI3UK4Yvrm7Uk0SXaSf+goLgBJMZF/VQ4P2pQ0TUkeWKez35OEQ==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1tq4eI-0002cz-73; Thu, 06 Mar 2025 01:24:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#73494] [PATCH v3 0/3] tmpfs /run References: <cover.1727331040.git.hako@ultrarare.space> In-Reply-To: <cover.1727331040.git.hako@ultrarare.space> Resent-From: Hilton Chain <hako@ultrarare.space> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org> Resent-CC: hako@ultrarare.space, maxim.cournoyer@gmail.com, ludo@gnu.org, vagrant@debian.org, guix-patches@gnu.org Resent-Date: Thu, 06 Mar 2025 06:24:02 +0000 Resent-Message-ID: <handler.73494.B73494.17412422009992@debbugs.gnu.org> Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73494 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 73494@debbugs.gnu.org Cc: Hilton Chain <hako@ultrarare.space>, Hilton Chain <hako@ultrarare.space>, Maxim Cournoyer <maxim.cournoyer@gmail.com>, Ludovic =?utf-8?q?Court=C3=A8s?= <ludo@gnu.org>, Vagrant Cascadian <vagrant@debian.org> X-Debbugs-Original-Xcc: Hilton Chain <hako@ultrarare.space>, Maxim Cournoyer <maxim.cournoyer@gmail.com>, Ludovic =?utf-8?q?Court=C3=A8s?= <ludo@gnu.org>, Vagrant Cascadian <vagrant@debian.org> Received: via spool by 73494-submit@debbugs.gnu.org id=B73494.17412422009992 (code B ref 73494); Thu, 06 Mar 2025 06:24:02 +0000 Received: (at 73494) by debbugs.gnu.org; 6 Mar 2025 06:23:20 +0000 Received: from localhost ([127.0.0.1]:41005 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>) id 1tq4dc-0002b6-5f for submit@debbugs.gnu.org; Thu, 06 Mar 2025 01:23:20 -0500 Received: from mx.boiledscript.com ([88.99.243.112]:57720) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from <hako@ultrarare.space>) id 1tq4dZ-0002av-10 for 73494@debbugs.gnu.org; Thu, 06 Mar 2025 01:23:18 -0500 From: Hilton Chain <hako@ultrarare.space> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ultrarare.space; s=mail; t=1741242195; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=7UVe/F6XQFKaBcwvplnLvV1vNrzMxCT1uzXlQrvP4A0=; b=j4NO79eN7ljD7j2cdcfbgwWdQB8B3fMGLzRLdJf6gzbo9Y1otcL+HCYP0XYNF0OExYzbaJ ChkDhJvRu0mAQcv4bmE2qcDaJurtW6l5WA/YR4EBwFQCi47ZaaiRRmK7vSuBhJXdmItGcp R7XkR4lrvIqxH+00OVTub8wIwBiIlBkDfzcDIvecczrsJaabQ6H4mZoK/Tqi18PLO2ikjH ZuhfJaTS13h4yY58yjIPyLHAtM10T2lSDsf4s43tNIbiWFB2Khn/eu/KaZ+Ge7DU6hd5IS fSo+0iPHGIXIGre8RWUARJtNoGQVEn6ahQC97C83zO5C9ORPfg8o3siRxH8sVQ== Date: Thu, 6 Mar 2025 14:22:41 +0800 Message-ID: <cover.1741241800.git.hako@ultrarare.space> MIME-Version: 1.0 X-MS-Reactions: disallow Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: <guix-patches.gnu.org> List-Unsubscribe: <https://lists.gnu.org/mailman/options/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=unsubscribe> List-Archive: <https://lists.gnu.org/archive/html/guix-patches> List-Post: <mailto:guix-patches@gnu.org> List-Help: <mailto:guix-patches-request@gnu.org?subject=help> List-Subscribe: <https://lists.gnu.org/mailman/listinfo/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=subscribe> Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches |
Series | tmpfs /run | |
Message
Hilton Chain
March 6, 2025, 6:22 a.m. UTC
V2 -> V3: For file-system-mapping->bind-mount, drop the first 4 characters in source when it's a string starting with "/var/run", instead of using canonicalized source (as in V2), since the source can't be ensured to exist at evaluation time. Hilton Chain (3): file-systems: %base-file-systems: Add tmpfs /run. services: cleanup: Make /var/run a symlink of /run. services: activation: Continue on exceptions. doc/guix.texi | 8 +++++++ gnu/services.scm | 42 +++++++++++++++++++++++++++---------- gnu/services/dbus.scm | 31 --------------------------- gnu/system/file-systems.scm | 24 +++++++++++++++++++-- 4 files changed, 61 insertions(+), 44 deletions(-) base-commit: 18e6031f7405b8b9c38255db1957e1eb064d4632 prerequisite-patch-id: d239751bbc956c6055d0a7c7caf8b3bb3ec6a623 -- 2.48.1
Comments
Hi, Hilton Chain <hako@ultrarare.space> writes: > V2 -> V3: > > For file-system-mapping->bind-mount, drop the first 4 characters in source > when it's a string starting with "/var/run", instead of using canonicalized > source (as in V2), since the source can't be ensured to exist at evaluation > time. > > Hilton Chain (3): > file-systems: %base-file-systems: Add tmpfs /run. This one looks good to me. > services: cleanup: Make /var/run a symlink of /run. This still has the jami system test failing (make check-system TESTS=jami). This must be resolved before we can merge this. > services: activation: Continue on exceptions. I like it, but I think you can't use the i18n or diagnostics user-facing modules on the build side, as their closure is too big to be reasonably imported. Most modules intended to be used on the builder side are namespaced under (guix build ...), but there are a few excptions. I'll try to understand the jami test failure, but my last experiments were not successful. Help welcome.
On Sun, 09 Mar 2025 15:34:58 +0800, Maxim Cournoyer wrote: > > Hi, > > Hilton Chain <hako@ultrarare.space> writes: > > > V2 -> V3: > > > > For file-system-mapping->bind-mount, drop the first 4 characters in source > > when it's a string starting with "/var/run", instead of using canonicalized > > source (as in V2), since the source can't be ensured to exist at evaluation > > time. > > > > Hilton Chain (3): > > file-systems: %base-file-systems: Add tmpfs /run. > > This one looks good to me. > > > services: cleanup: Make /var/run a symlink of /run. > > This still has the jami system test failing (make check-system > TESTS=jami). This must be resolved before we can merge this. > > > services: activation: Continue on exceptions. > > I like it, but I think you can't use the i18n or diagnostics user-facing > modules on the build side, as their closure is too big to be reasonably > imported. Most modules intended to be used on the builder side are > namespaced under (guix build ...), but there are a few excptions. Just checked, these two modules are already inside (gnu build activation)'s closure. > I'll try to understand the jami test failure, but my last experiments > were not successful. Help welcome. Did your have a luck with the dbus change you mentioned on IRC?
On Thu, 13 Mar 2025 10:06:35 +0800, Hilton Chain wrote: > > > I'll try to understand the jami test failure, but my last experiments > > were not successful. Help welcome. > > Did your have a luck with the dbus change you mentioned on IRC? Found out it's ‘mkdir-p/perms’ failed, from its docstring: "Additionally, verify no component of DIRECTORY is a symbolic link". Changing it to mkdir-p + chown + chmod passes the test.
Hi, Hilton Chain <hako@ultrarare.space> writes: [...] >> I like it, but I think you can't use the i18n or diagnostics user-facing >> modules on the build side, as their closure is too big to be reasonably >> imported. Most modules intended to be used on the builder side are >> namespaced under (guix build ...), but there are a few excptions. > > Just checked, these two modules are already inside (gnu build activation)'s > closure. Oh, indeed: --8<---------------cut here---------------start------------->8--- scheme@(guile-user)> (set! %load-hook (lambda (filename) (format #t "Loading ~a ...\n" filename))) scheme@(guile-user)> ,use (gnu build activation) Loading /run/current-system/profile/share/guile/site/3.0/gnu/build/activation.scm ... Loading /run/current-system/profile/share/guile/site/3.0/gnu/system/accounts.scm ... Loading /run/current-system/profile/share/guile/site/3.0/guix/records.scm ... Loading /run/current-system/profile/share/guile/site/3.0/gnu/system/privilege.scm ... Loading /run/current-system/profile/share/guile/site/3.0/gnu/build/accounts.scm ... Loading /run/current-system/profile/share/guile/site/3.0/guix/combinators.scm ... Loading /gnu/store/ylwk2vn18dkzkj0nxq2h4vjzhz17bm7c-guile-3.0.9/share/guile/3.0/srfi/srfi-19.scm ... [...] Loading /run/current-system/profile/share/guile/site/3.0/gnu/build/file-systems.scm ... Loading /run/current-system/profile/share/guile/site/3.0/gnu/system/uuid.scm ... Loading /run/current-system/profile/share/guile/site/3.0/gnu/system/file-systems.scm ... Loading /gnu/store/ylwk2vn18dkzkj0nxq2h4vjzhz17bm7c-guile-3.0.9/share/guile/3.0/srfi/srfi-2.scm ... Loading /run/current-system/profile/share/guile/site/3.0/guix/diagnostics.scm ... Loading /run/current-system/profile/share/guile/site/3.0/guix/colors.scm ... Loading /run/current-system/profile/share/guile/site/3.0/guix/memoization.scm ... Loading /run/current-system/profile/share/guile/site/3.0/guix/profiling.scm ... Loading /run/current-system/profile/share/guile/site/3.0/guix/i18n.scm ... [...] --8<---------------cut here---------------end--------------->8--- It comes from (gnu system file-systems), which has in a comment: --8<---------------cut here---------------start------------->8--- ;;; Note: this file system is used both in the Shepherd and on the "host ;;; side", so it must not include (gnu packages …) modules. --8<---------------cut here---------------end--------------->8--- I guess that's fine then. >> I'll try to understand the jami test failure, but my last experiments >> were not successful. Help welcome. > > Did your have a luck with the dbus change you mentioned on IRC? The jami-dbus-session service now runs, but it errors starting the actual jami service. To be investigated.
On Thu, 13 Mar 2025 21:20:40 +0800, Maxim Cournoyer wrote: > > >> I'll try to understand the jami test failure, but my last experiments > >> were not successful. Help welcome. > > > > Did your have a luck with the dbus change you mentioned on IRC? > > The jami-dbus-session service now runs, but it errors starting the > actual jami service. To be investigated. I think we can actually get rid of the symlink issue, by using a bind mount. I actually thought about this even before trying to use a symlink, but it fails at initrd stage, not sure why. I just tried to add the bind mount in cleanup-service-type, which is executed after initrd and before activation, and succeeded :)