From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id WMpzI4hz02YdzgAAe85BDQ:P1 (envelope-from ) for ; Sat, 31 Aug 2024 19:48:24 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id WMpzI4hz02YdzgAAe85BDQ (envelope-from ) for ; Sat, 31 Aug 2024 21:48:24 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=pYqEk+ra; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=ERmGFFoO; 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=1725133704; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: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:dkim-signature; bh=znJXlRcstlQMT007+pNA6qI94rqEBTqs/FfP9qYO8n8=; b=A3z1PKZiEjOQy+JuwZL9y1mrDkfy6ujLNFfoJMjibVes0KhA3ZEVl7nNiSSfuLN/ccqw7i ZdFPp5VkkkIKuSE1GEmEmUXn/0wPUhtVcyTQFgJPdiv9x0Y3jY7RKVXmRv4PWn3OZvp0HY jUwy/lEi4bz1+rAxbpqEnnsA7hMiSh1q4pxv26QqoFquZ3F6ce0Cj/SF3p6lAb+CkQDAoS qYowKCFqp+sXDmSaQOFQHJLRCNKA5bosAYS0jRvU2FmVm3Vntk16ZKoxbCmDidG3rZuGGH S6GXW8lpRiA95HrKvnoKHKAQkQyAQKCRNq/QyulKtfMYuDRV68AGUjCKSkr88A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=pYqEk+ra; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=ERmGFFoO; 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-Seal: i=1; s=key1; d=yhetil.org; t=1725133704; a=rsa-sha256; cv=none; b=n6E9ph/6D8IuZZuNHPcIQzeD+6CudbeiIkbOrVkP53aEtDZTN5XwTtWlfXvooZ2Qrunoel Tr03C5cOAACffPLLYVnDiQ62ZuG+BUi1nFIADGH5A0iAq4GO+v9WbsJ6Vxa5K9AVNzCApH sgbe7RX5BopF1aD3fGwBvvcexERlI1bIJc5a3ck91Th8qjRnUZfzk2LrCwxXGAxmkGd2M6 YN8GqXhxI64dwIcdnLxpsQiK1IWY6ej3VLwX8PCT4lKPJ+seyndR9Cjy4UORJc82aRfQgv ip6dDnjr6UJCatF2RrTFr6HwGVp0bixg9E6mvmrw4gjitq+bDM1wtLWUM7xyVw== 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 7BF103F549 for ; Sat, 31 Aug 2024 21:48:24 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1skU4t-0007yQ-F3; Sat, 31 Aug 2024 15:48:07 -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 1skU4r-0007xg-Dr for guix-patches@gnu.org; Sat, 31 Aug 2024 15:48:05 -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 1skU4r-0001Y8-4Y for guix-patches@gnu.org; Sat, 31 Aug 2024 15:48:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=znJXlRcstlQMT007+pNA6qI94rqEBTqs/FfP9qYO8n8=; b=pYqEk+raAm5leBtAbKvaYDhJ0zKElqgoU7D7LXCliDaFxs29KFBCZFNQoVnsO1OIm9o+wVNlDMI64s8yhU8n/XcUpRHTH0AmechWvOrYDHPUO04t71HDmvee9r5dgIkT81Dm09VjlU8/Nxmm2L5MS7WGv402Aie0a01Nxw0516gULBJNRWfEYO5paiaw1+oqNJWrQB3v50BhQO1rUJCBJnNRR1EayLDnK1lwbLTm9Ri82HXhrgDBdmxBksbpURbgFy6J04zEkGY0cWUlTA4XoqR/Toj9LHm0jbSewMV6p7O08TMvqWCyh+ywg8qI9TXPtRYOyyRPB0pwVCZMN7Fd1g==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1skU5n-0002Ao-JH for guix-patches@gnu.org; Sat, 31 Aug 2024 15:49:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#72920] [PATCH 3/3] services: cleanup: Delete /run upon boot. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 31 Aug 2024 19:49:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72920 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 72920@debbugs.gnu.org Cc: Vagrant Cascadian , Ludovic =?UTF-8?Q?Court=C3=A8s?= Received: via spool by 72920-submit@debbugs.gnu.org id=B72920.17251337248295 (code B ref 72920); Sat, 31 Aug 2024 19:49:03 +0000 Received: (at 72920) by debbugs.gnu.org; 31 Aug 2024 19:48:44 +0000 Received: from localhost ([127.0.0.1]:56673 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1skU5T-00029i-QL for submit@debbugs.gnu.org; Sat, 31 Aug 2024 15:48:44 -0400 Received: from eggs.gnu.org ([209.51.188.92]:49200) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1skU5N-00028x-Cl for 72920@debbugs.gnu.org; Sat, 31 Aug 2024 15:48:37 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1skU4L-0001T4-Ir; Sat, 31 Aug 2024 15:47:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:References:In-Reply-To:Date:Subject:To: From; bh=znJXlRcstlQMT007+pNA6qI94rqEBTqs/FfP9qYO8n8=; b=ERmGFFoOqfQRu/6nB4qQ iqfEwyf6BP0wyojbBvs48WVKAyLr7ULKXvknSvNFDFbIba1jP162mcz49XRWpJ254jm2OgoDso/ZB 75+q+MD7MxS2EFcdZsrgU3JofVw49CIkGOg8ntZet1SWqZcLovZuNMLmgOlzgVdbJIZeT7w2Fky5S FXzifMnLtVdn4uVn8hS6Xq3J/SV/6ZkckNvj/tLWdZ3VVZrpJQ7cycg0pvBomn6Z9wkF8jw3dVvQy JD+rbE1rewiXq2YguDuzW6BzWW3WHMPZF2wYf8K7sZb1Pn6W/RMD0I5uBiBuo4pGoO3kIPqnvi0dv +mK9o5UovT179w==; From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Date: Sat, 31 Aug 2024 21:47:24 +0200 Message-ID: <32c6680a30075c7885a15dfe5fc3f3a8470244f3.1725133215.git.ludo@gnu.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: References: MIME-Version: 1.0 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: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: 7BF103F549 X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -7.58 X-Spam-Score: -7.58 X-TUID: NSaeFZAhlLEu Fixes . * gnu/services.scm (cleanup-gexp): Delete /run and recreate it. Reported-by: Vagrant Cascadian Change-Id: Iae39f1aa734712a3755b24b156802ec0282d3f14 --- gnu/services.scm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gnu/services.scm b/gnu/services.scm index 4a8e2b3b15..9d278f11ab 100644 --- a/gnu/services.scm +++ b/gnu/services.scm @@ -632,7 +632,7 @@ (define (cleanup-gexp _) #~(begin (use-modules (guix build utils)) - ;; Clean out /tmp and /var/run. + ;; Clean out /tmp, /var/run, and /run. ;; ;; XXX This needs to happen before service activations, so it ;; has to be here, but this also implicitly assumes that /tmp @@ -659,10 +659,11 @@ (define (cleanup-gexp _) (setlocale LC_CTYPE "C.UTF-8") (delete-file-recursively "/tmp") (delete-file-recursively "/var/run") + (delete-file-recursively "/run") (mkdir "/tmp" #o1777) (mkdir "/var/run" #o755) - (delete-file-recursively "/run/udev/watch.old")))))) + (mkdir "/run" #o755)))))) (define cleanup-service-type ;; Service that cleans things up in /tmp and similar. -- 2.45.2