From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.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 GALIHdw2aGdEcwAAe85BDQ:P1 (envelope-from ) for ; Sun, 22 Dec 2024 15:57: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 mp2.migadu.com with LMTPS id GALIHdw2aGdEcwAAe85BDQ (envelope-from ) for ; Sun, 22 Dec 2024 16:57: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=q3oi0GgW; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=HgjAKtcY; 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=1734883036; 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:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=XC1MeoS4OOTsazAZ7x3EKc3rCjgc2+EB+pLoarh3YFA=; b=XkrkyFEyWCfmr12NKR1GyiMCKXoVCIkIfaoGvNNN3fE/75rOqg1fmGeBKH6N2YpIc7N+9C 0v6qTho1rSbxi3lmVMQ8cVF/1n1iWLWeq4Olb80J9ZS2JSUQ2oRHJ2N073Q8+6lcRyCyhI K7wYDgC0CT4O6s/O77Fmdz7KYjN5v1kRkz/q3Y2XtVJQvU2wGE3GjOd7CXqmYxpmAulYqn xI6mXdQyooVpjRL36Qz7Lp8hg8Vv11qvKQjLwaPJvUTMOaHlRd0rFAQ3FhCFokAjqn0Jcz qETZTx85y5x5yxqo1W6sF1Kg62+LT0tz+IxFwL4ke3L9M/g4gKvCfv4cgd5nsg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=q3oi0GgW; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=HgjAKtcY; 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=1734883036; a=rsa-sha256; cv=none; b=MUiIJ7XmFiEOvpS6bMaI55fdlMfhi3h6rMSoQzZzbZRdcWNbKpQPXSvc2fhoRVrJx7lGGP O7gnIsWGBSv8VcElfiwi6Nis98+Xf5xMVErAeOvUwSMEb6vy45vqcfL226VjqezsyV/V9N tADTIC+sRNRzO2Okv4/XonM+myH58aM+1R0gujB/zf3UGrh6t+31bfYLHr7bxJV8mTpMXf vpc/Na4inJ3ezAVTshG6FglL6jg7bbbBqnD9C34LOKG/Bd2OI3pfcBZGaPS7WPi9XjoYeh 8O5QNU//uUu9ly50++sBUuSK8q5TTq1UFKLzoEA2obMfKXMOKGAKmcBWK74hSQ== 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 2646780154 for ; Sun, 22 Dec 2024 16:57:16 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tPOKJ-0004iC-GK; Sun, 22 Dec 2024 10:57:07 -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 1tPOKI-0004i4-96 for guix-patches@gnu.org; Sun, 22 Dec 2024 10:57:06 -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 1tPOKH-0007uE-Vq; Sun, 22 Dec 2024 10:57:06 -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:From:To:Subject; bh=XC1MeoS4OOTsazAZ7x3EKc3rCjgc2+EB+pLoarh3YFA=; b=q3oi0GgW0pNNWCJQU95B8r6f5sb/FWOyKYGC11YUQMVveQ273Ou9PQQqgFvECnuQWXpBYs6D4DYxeGlZ7LUMBZU0tdvC4DU78QQc8GbyScIA98EKfxFQbNRbwBceb/4wQHrIXQq6TXb9V4BRgKRAsjD7e0o/iMnFOc3cNGI82lJkWkvSHB+YQWxQvpfS9jL14yTIZepe1R8NZzLUtm6mWafbxRTQJcU8P2AMKgoZ8rYmoaD+Uii5/WDSbk3dffvkTrME8a56s6UUk+YgrtIkfqKqwm5lpix7bLUmeYWXM59nNtdlSkrtyRxj086IEZ9DTGeuaElOcoRbDpcqROQJGQ==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tPOKE-0003Kr-7l; Sun, 22 Dec 2024 10:57:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#75027] [PATCH 0/3] 'guix system reconfigure' loads system for kexec reboot Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix@cbaines.net, dev@jpoiret.xyz, ludo@gnu.org, othacehe@gnu.org, zimon.toutoune@gmail.com, me@tobias.gr, guix-patches@gnu.org Resent-Date: Sun, 22 Dec 2024 15:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 75027 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 75027@debbugs.gnu.org Cc: Jakob Kirsch , Ludovic =?UTF-8?Q?Court=C3=A8s?= , Christopher Baines , Josselin Poiret , Ludovic =?UTF-8?Q?Court=C3=A8s?= , Mathieu Othacehe , Simon Tournier , Tobias Geerinckx-Rice X-Debbugs-Original-To: guix-patches@gnu.org X-Debbugs-Original-Xcc: Christopher Baines , Josselin Poiret , Ludovic =?UTF-8?Q?Court=C3=A8s?= , Mathieu Othacehe , Simon Tournier , Tobias Geerinckx-Rice Received: via spool by submit@debbugs.gnu.org id=B.173488300512794 (code B ref -1); Sun, 22 Dec 2024 15:57:02 +0000 Received: (at submit) by debbugs.gnu.org; 22 Dec 2024 15:56:45 +0000 Received: from localhost ([127.0.0.1]:51532 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tPOJx-0003KI-15 for submit@debbugs.gnu.org; Sun, 22 Dec 2024 10:56:45 -0500 Received: from lists.gnu.org ([209.51.188.17]:49240) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tPOJu-0003KA-MV for submit@debbugs.gnu.org; Sun, 22 Dec 2024 10:56:43 -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 1tPOJu-0004fw-CN for guix-patches@gnu.org; Sun, 22 Dec 2024 10:56:42 -0500 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 1tPOJu-0007pX-0i; Sun, 22 Dec 2024 10:56:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:Subject:To:From:in-reply-to: references; bh=XC1MeoS4OOTsazAZ7x3EKc3rCjgc2+EB+pLoarh3YFA=; b=HgjAKtcYNHIwD7 +rkvx6q5nMhZmve5EX7qi7zI8S2MCCnTFMzFgcrL26Fa9JPzk8+9sOTdAMp379qxeqLoN+Tq1w99a m4Fu2k2TjJegzAdFAivcAc5Xs91M6QfU9OTlbdW1sfFfy3VLAT/lu/fu1P1MtDgpZcpVXpd9tsjR3 UDf8T6llLiMipVYTbvysYLhXPEDYbHUsoilKqYho5yTslgbxpVk9+90o0hGnccagOMNfBRTkkmmyw QWvXPtApBYd2A9cp+W+WQgsmqT65MimsLIJmWYF2fHfOHujvCVAWChy+F0CM6S6o/Q9y7npnZ9DOj wnzbrCW+zuP71Pkx/m1A==; From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Date: Sun, 22 Dec 2024 16:56:14 +0100 Message-ID: X-Mailer: git-send-email 2.46.0 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-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: -3.32 X-Spam-Score: -3.32 X-Migadu-Queue-Id: 2646780154 X-TUID: FouGcZSa29tK Hello Guix, Following work by Jakob Kirsch adding kexec support in the Shepherd (the new ‘reboot -k’ option), here’s the Guix side of it: with these patches, ‘guix system reconfigure’ loads the new system so that one can run ‘reboot -k’ to quickly reboot into it. Thoughts? Ludo’. PS: It took me a while to debug until I realized it was working very well: it’s just that I was booting a kernel with “quiet” on its command line, so I couldn’t see anything. 🤦 Ludovic Courtès (3): syscalls: Add ‘kexec-load-file’. system: Export ‘…-initrd-file’ and ‘…-root-file-system’. reconfigure: Call ‘kexec-load-file’. gnu/system.scm | 4 +- gnu/tests/reconfigure.scm | 77 +++++++++++++++++++++++++++++ guix/build/syscalls.scm | 54 ++++++++++++++++++++ guix/scripts/system/reconfigure.scm | 25 ++++++++++ tests/syscalls.scm | 13 +++++ 5 files changed, 172 insertions(+), 1 deletion(-) base-commit: 9f53e10235cced7a85697481c859829742b9912c -- 2.46.0