From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id EJjMCLmQ4mQJyAAASxT56A (envelope-from ) for ; Mon, 21 Aug 2023 00:16:25 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id qKjZB7mQ4mQ8vQAAG6o9tA (envelope-from ) for ; Mon, 21 Aug 2023 00:16:25 +0200 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 6DA3A38776 for ; Mon, 21 Aug 2023 00:16:24 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1692569784; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post; bh=ZOsmHKDgaZFlAfSDbDTeinL6fh82d8cu2MGGS3YwJ5g=; b=iB437QxrefUqMJ5GIx6MnOnPGc2XP4Z9W98BCmIUwVKPe1Yeqd5ZQK4qk2TXxdgUmlcBMs z3moEdxEA081P6Exasm27EBb8BKiFyt2NWkNQaAsGlNyjcGOTVfd7bIsNpeXv7xwkp4Iag vwGJt9zsZW90JujyXiMWuuwuCOCw2u45LJAho+NVS46dMcwUk/FmK2452cfFUrILVodq+g 1F1iO1m6by8A+koRUhl/8xKz3X2fg8FnATi9CpfHjjyrYQ7HgCqFJGVGskDJVyig6konww 4S2Km6qW5xN1URmA1EnwI48eM7ZgjvvoRVqxCbXfS1saLupQqi4/7SDFeX1mjA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1692569784; a=rsa-sha256; cv=none; b=tiHUDd/onpxPIalz7n6PjqOfB4PwstpBdCexXPa7cTrDoS9ZQLGvVPcf1hcaqRi1xTVzJg o6RSXsvAfYWK4lN1JmK5juHvto3k3Sv4tKPF9SWascy4E8Dk9PWqg08LGpXlMJvBmVNylB YzBUQk1OPftBpJlkq06BYUjrVO197ju4RoXtWbSXgEm/fje7RTQAxW090CmFHwIqlRtP/G CEnf7B/YflzSBC9tHWjLDons8aAej9sJk+4gVM6HKLilIb85PBiuu40rJEO0ngumlRn+1A mWs7UXOpfuceNydcT2EJAjahxObzSl3Lqj2c1F03MBdcDNSSgRYcMnQpPDEuxA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qXqiJ-0003mO-46; Sun, 20 Aug 2023 18:16:03 -0400 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 1qXqiG-0003lz-L9 for guix-patches@gnu.org; Sun, 20 Aug 2023 18:16:00 -0400 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 ) id 1qXqiG-0000fi-Ch for guix-patches@gnu.org; Sun, 20 Aug 2023 18:16:00 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qXqiH-0003Tn-TJ for guix-patches@gnu.org; Sun, 20 Aug 2023 18:16:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#65335] [PATCH 0/4] Allow mounting root on tmpfs for impersistence Resent-From: Nicolas Graves Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 20 Aug 2023 22:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65335 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 65335@debbugs.gnu.org Received: via spool by 65335-submit@debbugs.gnu.org id=B65335.169256973013335 (code B ref 65335); Sun, 20 Aug 2023 22:16:01 +0000 Received: (at 65335) by debbugs.gnu.org; 20 Aug 2023 22:15:30 +0000 Received: from localhost ([127.0.0.1]:55016 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qXqhm-0003T1-ED for submit@debbugs.gnu.org; Sun, 20 Aug 2023 18:15:30 -0400 Received: from 5.mo584.mail-out.ovh.net ([188.165.44.50]:34405) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qXqhj-0003Sp-QH for 65335@debbugs.gnu.org; Sun, 20 Aug 2023 18:15:29 -0400 Received: from director11.ghost.mail-out.ovh.net (unknown [10.109.138.54]) by mo584.mail-out.ovh.net (Postfix) with ESMTP id E2E7724487 for <65335@debbugs.gnu.org>; Sun, 20 Aug 2023 22:15:23 +0000 (UTC) Received: from ghost-submission-6684bf9d7b-zgg77 (unknown [10.110.171.117]) by director11.ghost.mail-out.ovh.net (Postfix) with ESMTPS id 9A17D1FDFC for <65335@debbugs.gnu.org>; Sun, 20 Aug 2023 22:15:23 +0000 (UTC) Received: from ngraves.fr ([37.59.142.102]) by ghost-submission-6684bf9d7b-zgg77 with ESMTPSA id PL1DInuQ4mSlGjkA/woYXQ (envelope-from ) for <65335@debbugs.gnu.org>; Sun, 20 Aug 2023 22:15:23 +0000 X-OVh-ClientIp: 81.67.140.142 In-Reply-To: References: Date: Mon, 21 Aug 2023 00:15:22 +0200 Message-ID: <877cppl5s5.fsf@ngraves.fr> MIME-Version: 1.0 Content-Type: text/plain X-Ovh-Tracer-Id: 10410914965449990891 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedviedruddukedgtdekucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucenucfjughrpefhvffujghffffkgggtsehttdertddttddtnecuhfhrohhmpefpihgtohhlrghsucfirhgrvhgvshcuoehnghhrrghvvghssehnghhrrghvvghsrdhfrheqnecuggftrfgrthhtvghrnheptdejueeffeevfeelteelgfeikeellefglefhveffveeftddvhefgvdfgleevueegnecuffhomhgrihhnpehthhgvrdhlohgtrghlnecukfhppeduvdejrddtrddtrddupdekuddrieejrddugedtrddugedvpdefjedrheelrddugedvrddutddvnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepuddvjedrtddrtddruddpmhgrihhlfhhrohhmpeeonhhgrhgrvhgvshesnhhgrhgrvhgvshdrfhhrqedpnhgspghrtghpthhtohepuddprhgtphhtthhopeeiheeffeehseguvggssghughhsrdhgnhhurdhorhhgpdfovfetjfhoshhtpehmohehkeegpdhmohguvgepshhmthhpohhuth X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Nicolas Graves X-ACL-Warn: , Nicolas Graves via Guix-patches From: Nicolas Graves via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -6.70 X-Spam-Score: -6.70 X-Migadu-Queue-Id: 6DA3A38776 X-Migadu-Scanner: mx1.migadu.com X-TUID: hDbXJAlcvDdS On 2023-08-16 11:24, Nicolas Graves via Guix-patches via wrote: > This patch series allows the root to be mounted on tmpfs, and ensures directories that are needed are present. Once the persisting directories needed are configured (with btrfs for instance), one can mount root on tmpfs. These persisting directories should be at least /var/log (not needed, but safety requirement), /var/lib, /var/guix, but they are application-dependent (if using NetworkManager, /etc/NetworkManager; if guix offloading daemon is present, /etc/guix; the same goes for Docker...). > > Nicolas Graves (4): > file-systems: canonicalize-device-name: Ignore the "none" case. > gnu: services: activation-script: Ensure /var/run existence. > gnu: build: activate-current-system: Ensure directory existence. > gnu: system: bootable-kernel-arguments: Ignore the "none" root case. > > gnu/build/activation.scm | 1 + > gnu/build/file-systems.scm | 8 ++++---- > gnu/services.scm | 1 + > gnu/system.scm | 21 ++++++++++++--------- > 4 files changed, 18 insertions(+), 13 deletions(-) > A new update with a little addition for the home symlink-manager, in the same idea of enabling impermanence configurations on guix. I've experienced a few issues with the home symlink-manager, in the case where To explain the use case for this last commit : in the hypothesis in which we use a dedicated btrfs to save for instance the ~/.ssh or the ~/.local/share directory, when running guix home reconfigure, the activation script will error before ending with an EBUSY error. This will make the home reconfiguration fail, while the most sensible action in this case is to ignore the deletion call and continue, just like when a configuration directory is not empty. This is not enough for enabling impermanence home configurations, but it enables to reconfigure the home with btrfs subvolumes under ~. -- Best regards, Nicolas Graves