From debbugs-submit-bounces@debbugs.gnu.org Thu Mar 04 01:58:06 2021 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 To: 46560@debbugs.gnu.org Subject: [PATCH v2 0/2] Activate system when switching generations. 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-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 46560 Cc: ludo@gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) 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