From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id iLFJJ0OFQGB6ZgAA0tVLHw (envelope-from ) for ; Thu, 04 Mar 2021 06:59:15 +0000 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id oOcEI0OFQGBXUQAAB5/wlQ (envelope-from ) for ; Thu, 04 Mar 2021 06:59:15 +0000 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 8BA761AC63 for ; Thu, 4 Mar 2021 07:59:14 +0100 (CET) Received: from localhost ([::1]:44444 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lHhx3-0006uP-FS for larch@yhetil.org; Thu, 04 Mar 2021 01:59:13 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:35716) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lHhws-0006u0-8u for guix-patches@gnu.org; Thu, 04 Mar 2021 01:59:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:45980) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lHhws-0003zK-0y for guix-patches@gnu.org; Thu, 04 Mar 2021 01:59:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lHhwr-0000tP-VX for guix-patches@gnu.org; Thu, 04 Mar 2021 01:59:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#46560] [PATCH v2 0/2] Activate system when switching generations. Resent-From: Brice Waegeneire Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 04 Mar 2021 06:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46560 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 46560@debbugs.gnu.org Cc: ludo@gnu.org Received: via spool by 46560-submit@debbugs.gnu.org id=B46560.16148410863342 (code B ref 46560); Thu, 04 Mar 2021 06:59:01 +0000 Received: (at 46560) by debbugs.gnu.org; 4 Mar 2021 06:58:06 +0000 Received: from localhost ([127.0.0.1]:57520 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lHhvy-0000rq-7W for submit@debbugs.gnu.org; Thu, 04 Mar 2021 01:58:06 -0500 Received: from relay2-d.mail.gandi.net ([217.70.183.194]:45879) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lHhvw-0000rJ-Ud for 46560@debbugs.gnu.org; Thu, 04 Mar 2021 01:58:05 -0500 X-Originating-IP: 176.181.186.101 Received: from localhost (i15-les02-ntr-176-181-186-101.sfr.lns.abo.bbox.fr [176.181.186.101]) (Authenticated sender: brice@waegenei.re) by relay2-d.mail.gandi.net (Postfix) with ESMTPSA id EC73140007; Thu, 4 Mar 2021 06:57:58 +0000 (UTC) From: Brice Waegeneire Date: Thu, 4 Mar 2021 07:57:52 +0100 Message-Id: <20210304065754.18619-1-brice@waegenei.re> X-Mailer: git-send-email 2.30.1 In-Reply-To: <87czx06ubt.fsf@waegenei.re> References: <87czx06ubt.fsf@waegenei.re> MIME-Version: 1.0 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: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1614841155; h=from:from:sender:sender: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: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=R3XbQHbaB9/cA8TVwjUerFzRxJokWVJKngns5/PjUQI=; b=YhjBfxM8l35vA4xFyBMlZsBqzfC+difnpET6ptd56CBomKOsXGTZtYfag/i9pq+Iikynvk Au9nldj4WfClDadc4LhIf8Hw5auY9OwXbBN5AYzx8EX3+hZ9MQ9OFYUa55/J+5JVxJ7r8w l7eMJzO2h0IWCCuAUpKqlZD+6VIH9oXxEg3yDwdUBVuAlzkQ4t469eWJcis3PFmfj0rxMV H0OfeKMH+9/Tp42McD19bsbSMH5lYJLbc2PXL/yFLeVohPxp1Qr5A5rHZ5qJPm/jEtR1M1 ZcvVFP67wTZ0uJACZgtNDeNHRB6J5pHEfLfHnIs2jmUFFBCzX8hgTu9by7XzXA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1614841155; a=rsa-sha256; cv=none; b=SqJA9VANY8+f/vKWxIAgWpdE81573D6MNOSEco3RwLbGXIU5QsHYsMLSHhsahzZXDf77TB P4d7zM/NzZawnbAb5qnOafKYYWmBw4KbMtmI8i6yknkPlbYo0vgsw7MF8NQyiy/lcwR/Wn /fJn8+35NTGtfwWd2rrSjMS2FFk/tFz4w8lAinarzeYOJbHDDnFTux2dwQ8YZC01zxS/cd AE3Oob0gghI5HEH7Rk6HSL0bkxaGQsmTqx7Z5OCGB78CI0oMGs3J8e3k/Gt0yJnuZ8ueOb f6xa+CL28swsOGlsJnmlReD3Gjx8IBuVpwc9Exu2jrLfms+S5dE3E6/OS1XUQw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -1.36 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 8BA761AC63 X-Spam-Score: -1.36 X-Migadu-Scanner: scn1.migadu.com X-TUID: M9isalkx3gMz Hello Ludovic, Ludovic Courtès writes: > Brice Waegeneire skribis: > > > Fixes #38884. > > Nitpick: “Fixes .” > > > * guix/scripts/system.scm (switch-to-system-generation): Load the > > activate script for that generation. > > [...] > > > + (switch-to-generation* %system-profile number) > > + (primitive-load activate)) > > I suppose you need to wrap catch 'system-error here and to keep going > upon ENOENT. This patch set fixes both issues. Cheers, - Brice Brice Waegeneire (2): gnu: services: Add activate script to the profile system directory. scripts: system: Activate system when switching generations. gnu/services.scm | 10 +++++++++- guix/scripts/system.scm | 8 ++++++-- 2 files changed, 15 insertions(+), 3 deletions(-) -- 2.30.1