From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id 2AjrJNynb2chIwAA62LTzQ:P1 (envelope-from ) for ; Sat, 28 Dec 2024 07:25:16 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id 2AjrJNynb2chIwAA62LTzQ (envelope-from ) for ; Sat, 28 Dec 2024 08:25:16 +0100 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=pw1mO4Gb; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=kqNh5whg; 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=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1735370716; 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:dkim-signature; bh=HCAOaHK0ZKNC80nPBeT8/flrlFUQ3RFctEogx3ZAJ4E=; b=W7Za4Z90zPvWcVaGe5GhLFKpQ7SHEkJk6Xnvdw24ZJWJ26amiRGhMXmeh85KrR8orFC1+f Y8zdLY4m8l9Xxbbl7AqFWTkqOkn9/2HKFnoLFZl2e3ls8RzhZ2xQGQg30fWtGYrLZk2qjE x1PzuGtU4oUJubUE8Jzp4qhStbpddMzm1eMKGcJdJwKnllM8arNmFNGeGmeaDq+KiCNXPJ g+pFMCE6G+U9qzKQW+BEVFqJVLtoIa4yj8+7LrOOv6NWAi9HomIqnyMGV8CHvvn9neXpfB BQdSUk7MJpd4taNfTu91ipSO83fOMzPtW/LrbLKBXr7bHO2KSHBTBXI4dTd6Mg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=pw1mO4Gb; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=kqNh5whg; 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=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1735370716; a=rsa-sha256; cv=none; b=c8GUEBfG4jKx0SGaXYl0CUbnPhnXqm1/SLvBknDmU/XZPIUPrZi7ws9wSmWpLtsqo9ZWjn l3AQFGTMpoZ1MHI9oObYgIgffc1Ct8rFHXP5O8wh8V+S8Zol8wVvK2mkxZHWQC4kp5P9iR 0JnQAL3HejL93FfuZ9snce686Cw33KqhBsrtsjzlTo9WYQ8UBpB/rnqrXE3PefE07QyLtI 8hy8q9S9U9HlNKFfPm95QDSCIag4wcEgB/ofiGxRMK83zohPqnop3Y3ZIOtwmbUBa3bgZt kkS3FXT3xQbLg9Dw1lLTA+VDnhfQabSUNt/onZDhNmbyns4CLmpEPXt9XglXMQ== 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 C849A81241 for ; Sat, 28 Dec 2024 08:25:15 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tRRC4-0005kC-R6; Sat, 28 Dec 2024 02:25:05 -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 ) id 1tRRC3-0005k3-0L for guix-patches@gnu.org; Sat, 28 Dec 2024 02:25:03 -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 ) id 1tRRC2-0004dH-LX for guix-patches@gnu.org; Sat, 28 Dec 2024 02:25:02 -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:References:In-Reply-To:From:To:Subject; bh=HCAOaHK0ZKNC80nPBeT8/flrlFUQ3RFctEogx3ZAJ4E=; b=pw1mO4GbCgIrT5wuJAex3CeSnBFOxqLBozz1RywBpxTqFqr8P7pMQ9sKIAJo2HWQpDD78VlCnYfk55zR/q9QwOifhvfAFirBTpvp6ZzMCXOHybOHlM8r30dCn4HeR2HGC65hSSuq/6lm0Ylaz+erWOyi8zo5tIr3fcJ0EiRY5qJ/8vkqs99w+zkPkTMA+upxuFGEilujhOL7JGoVXwf/Bk4wNAyIwXupyDYFR6Li0fBlIGBcDQQMJ9Xy3vOsQi2YKFeQSakxGGxHtgHvcRgXo5cq/6oXOOuEE/gW+wCWsPeNkU9Qh8dLa42dOdgWJJfYnsF6Wi4jk9GD8scnFwqQsQ==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tRRC2-0004jA-9G for guix-patches@gnu.org; Sat, 28 Dec 2024 02:25:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#75027] [PATCH v2 3/3] reconfigure: Support loading the system for kexec reboot. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 28 Dec 2024 07:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 75027 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: Josselin Poiret , Simon Tournier , Mathieu Othacehe , Tobias Geerinckx-Rice , 75027@debbugs.gnu.org, Christopher Baines Received: via spool by 75027-submit@debbugs.gnu.org id=B75027.173537064818100 (code B ref 75027); Sat, 28 Dec 2024 07:25:02 +0000 Received: (at 75027) by debbugs.gnu.org; 28 Dec 2024 07:24:08 +0000 Received: from localhost ([127.0.0.1]:48577 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tRRB9-0004hs-KR for submit@debbugs.gnu.org; Sat, 28 Dec 2024 02:24:08 -0500 Received: from mail-pl1-f180.google.com ([209.85.214.180]:55421) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tRRB6-0004hg-Dw for 75027@debbugs.gnu.org; Sat, 28 Dec 2024 02:24:05 -0500 Received: by mail-pl1-f180.google.com with SMTP id d9443c01a7336-21636268e43so33836575ad.2 for <75027@debbugs.gnu.org>; Fri, 27 Dec 2024 23:24:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1735370583; x=1735975383; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=HCAOaHK0ZKNC80nPBeT8/flrlFUQ3RFctEogx3ZAJ4E=; b=kqNh5whgxLT0QK2iJPB4ONi4Moly/1DhXGuVcBswk4ruUPbjfeZV5gGawavviN0IrF xHwsR5OSIJgDlRsYUsPp8HUEEL32CZxXdXyKjm5jza21fBZ7t5k/2g5/DKEIAUiwsg/I Odlz5dkKVa0kiFxdCX+cK2Nwaa2/gvbKFqzUsyguuqiuuPhu27qh6RmWUg7SnJ+8lFTm AsADjZSl/45LNBL2oOrtV6PNAevvGA+K9L6t9cuRnwBlwG5j2++qfifKg4XgycM5qm+B 2DxCED/xLZPl61MGjIyJnkMGWnyq+IyZzRjdBY6PI5gNcr1El9aBGrU8NjXI+kyJvrDg 6pFw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1735370583; x=1735975383; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=HCAOaHK0ZKNC80nPBeT8/flrlFUQ3RFctEogx3ZAJ4E=; b=mpq8Glgife8RKEvuCgfXK+5nkfLEs8G2ffZRbONlen96xgQ+i/DQXJ20mpiMxiOLEy FVzKm3ORGOCtvGV7f/en9SRYdw4zESPxmgiX6P06zy2wfUPHvCTEYLCbK9TeGN30oPP2 VL3EtA11h1g7/meBfIMX1lcq5Ljf1UcTw8ost3vAEkOUx5djTOd9ct5wGlw3F2HggG0Q 623NhxLNYs9n7YyX9Btw3tU/kS74Q4JW6Ghhof2SPnuMAS7HZ4jaGGrNJRXkytJ7r1Hl 3Dnwffpu8/TZXm2bmSuDE42sMdJvHfpKtZ/g+aS6lYabJwiA80YblZiS1V8c8PkW8fRE YUhg== X-Gm-Message-State: AOJu0Yzby/WbbIEsMbJUiAeIKvvPrtF0nKK6PUrwz5A+myB94koESVz6 P5hXd2F1p2QRn/jlINNBtuhXUwkMH4DqR1UT+xpm9QprCiea0L9F X-Gm-Gg: ASbGncuCnBjhvSrJjR51dhfa5oiteUcId5eagGD6VtA8UPFSk9jSpRJ7YwKGsHFPYRr 1PUYjjynEdRgnNFDSL9eZNnpURABVevIfgw9QRQKX315JLqYYgQLsBlv1o38WKO6fsRWKXu8GrQ ojcJZ+vd/4Wx8a4WEHqpSUNeygPAf6ll5ePzby05k0VfM47aH4cWm+oIotgO+PSypJdt7EsXODr RQ/jq2LEvVHSi77PLJ8ohO9s1hc2Nl/QLzBFxJQL2GuseiZbgjfAg== X-Google-Smtp-Source: AGHT+IHyBEirH/5JPgEzSArH/UYPKviCAsZtlbHYqhl/iII6fU4On3H9r8aUBxSa+e3E0gZeBIJCvw== X-Received: by 2002:a05:6a20:c91b:b0:1e1:d22d:cf38 with SMTP id adf61e73a8af0-1e5e05b06bbmr43719493637.21.1735370583277; Fri, 27 Dec 2024 23:23:03 -0800 (PST) Received: from terra ([2405:6586:be0:0:c8ff:1707:9b9:af89]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-72aad81617csm15620621b3a.39.2024.12.27.23.23.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Dec 2024 23:23:02 -0800 (PST) From: Maxim Cournoyer In-Reply-To: <9a41b8595756a8eb9e792236097f175d6f952257.1735233263.git.ludo@gnu.org> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Thu, 26 Dec 2024 18:21:27 +0100") References: <9a41b8595756a8eb9e792236097f175d6f952257.1735233263.git.ludo@gnu.org> Date: Sat, 28 Dec 2024 16:22:52 +0900 Message-ID: <87a5cgs243.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx11.migadu.com X-Migadu-Spam-Score: 0.83 X-Spam-Score: 0.83 X-Migadu-Queue-Id: C849A81241 X-TUID: /tTJ+NhSRCIb Hi, Ludovic Court=C3=A8s writes: > This allows rebooting straight into the new system with =E2=80=98reboot -= k=E2=80=99. > > * guix/scripts/system/reconfigure.scm (kexec-loading-program) > (load-system-for-kexec): New procedures. > * gnu/tests/reconfigure.scm (run-kexec-test): New procedure. > (%test-upgrade-kexec): New variable. > * guix/scripts/system.scm (perform-action): Add #:load-for-kexec?. > Call =E2=80=98load-system-for-kexec=E2=80=99. > (show-help, %options): Add =E2=80=98--no-kexec=E2=80=99. > (%default-options): Add =E2=80=98load-for-kexec?=E2=80=99. > (process-action): Honor it and pass it to =E2=80=98perform-action=E2=80= =99. > * gnu/machine/ssh.scm (deploy-managed-host): Add call to > =E2=80=98load-system-for-kexec=E2=80=99. > * doc/guix.texi (Invoking guix system): Document it. Neat. [...] > +@cindex kexec, for fast reboots > +@cindex rebooting @i{via} Linux kexec Oh, special formatting in index entries; is that allowed/encouraged? [...] > --- a/gnu/machine/ssh.scm > +++ b/gnu/machine/ssh.scm > @@ -1,6 +1,6 @@ > ;;; GNU Guix --- Functional package management for GNU > ;;; Copyright =C2=A9 2019 Jakob L. Kreuze > -;;; Copyright =C2=A9 2020-2023 Ludovic Court=C3=A8s > +;;; Copyright =C2=A9 2020-2024 Ludovic Court=C3=A8s > ;;; Copyright =C2=A9 2024 Ricardo > ;;; > ;;; This file is part of GNU Guix. > @@ -552,6 +552,13 @@ (define (deploy-managed-host machine) > (inferior-exceptio= n-arguments > c))) > os) > + (load-system-for-kexec (eval/error-handling c > + (warning (G_ "\ > +failed to load system of '~a' for kexec reboot:~%~{~s ~}~%") Nitpick: I guess ideally you don't want a trailing space added in your formatted list, so you should escape the space something like '~%~{~s~^ ~}~%' in your (ice-9 format) format string. --=20 Thanks, Maxim