From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.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 qLwQIayzemeoawEA62LTzQ:P1 (envelope-from ) for ; Sun, 05 Jan 2025 16:30:36 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id qLwQIayzemeoawEA62LTzQ (envelope-from ) for ; Sun, 05 Jan 2025 17:30:36 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=vfyn6oYT; dkim=fail ("headers rsa verify failed") header.d=venatores.group header.s=mail header.b=h3EpibO3; 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=1736094636; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: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=pI0wMIULF4mUuHtYhnX0Cs8Qs9w6YbjUnJ+vwKhrZac=; b=NeCB3PqVXif+TfxVXZBYgzC4GguEmPmfkMpU+ofWMBN7BJrVnelVMitdrugvZQ9lejm8S9 nDpHQFhpL2BUbfCCnRpSiYInHZfJISY9/X5zeMtsM0mGXzOEbAPiHrNg17Adrb9L5Gp6OE iWoz/nObWcfh41T8PHqMHUThrcsx1nzGThK7MfVa5etYDgH765Fpkp75S/KDi3C1ngtEBm 7hT0JpyF5Hsoxqq84HkvNUJRn7X9HOoXv8iry2YjF5f6I8AfZNFXuXHSq16JPObnQASk21 97erpL9rT20O2m8zvexjocJckK80IHsz4eTn1gRkEqzRfQ+IgpM83UWlrT6EFw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=vfyn6oYT; dkim=fail ("headers rsa verify failed") header.d=venatores.group header.s=mail header.b=h3EpibO3; 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=1736094636; a=rsa-sha256; cv=none; b=mhZHUd+o7yVrKOZB8w2yiES4Y2NM0+MYs8d4x1f2rn3YWaO5C7QQhDuO6tMB8Iodbi0eoS p2VM9PyCIB1rPVryIaarC8Rqk4SBZDfKnJmo+Dv+PQDmDrHZko14MsB7VUoJzoe6w63xGo 3D5p4W3lHIdpSSXSi3WjnDB4rFCO8+5WuQk8CqTNpZx3mPOexZbwTN/fVjnoGqFqYZQv1v oWORiKtRneI0SdWZyXsNiNcaar/9CWVK26aWWpBs3jYGsJkp1pAWbx4yzX2Si3Mf2BYzJY zSc3E5bUeVgx2Siaxx2i23nuFXdjAX6LPnq0jSA0Sq9r3cnAwOi2k6Lx7PZfQg== 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 5E8AF5EA1 for ; Sun, 05 Jan 2025 17:30:36 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tUTW3-0002RD-Eq; Sun, 05 Jan 2025 11:30:15 -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 1tUTLD-0001GM-M9 for guix-patches@gnu.org; Sun, 05 Jan 2025 11:19:04 -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 1tUTLC-0000jN-CR for guix-patches@gnu.org; Sun, 05 Jan 2025 11:19:03 -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:In-Reply-To:References:Subject; bh=pI0wMIULF4mUuHtYhnX0Cs8Qs9w6YbjUnJ+vwKhrZac=; b=vfyn6oYT4pOByCQ6xSnVQ8mvJbhcUApAXltkZUsgzBXsWd9l3NcNiBmxYPLPsvbhjkssr4rcQ76qOzLS8cWu81N9lc2DRcNr78+DFM4p8xUtfwDa3ZvV4+THKS6ZRRCLOtHZI3NXQumExVp8x13JDfUDatH0LtPZFHnqhu6dhtWd+20l2sHoDT009DavVAXBg2eHJsoLdw/2Lb5tydsGg9RYt8P8JJPtO3Cl8igJ113nh7GONmEPkpv4P18PqSVV0S+vuTw23X1C/xD0cLJQaxaYusByTmUepLWWdRDF++eJtLtt4cp1WTor0uqJ9aoAxMv5vhl0FBCZAJwsPqGtQw==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tUTLB-0003fS-P5 for guix-patches@gnu.org; Sun, 05 Jan 2025 11:19:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#75027] guix system reconfigure fails with kexec-load-file: Invalid argument (KEXEC_FILE_DEBUG issue) References: In-Reply-To: Resent-From: boogs Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 05 Jan 2025 16:19:01 +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: 75027@debbugs.gnu.org Received: via spool by 75027-submit@debbugs.gnu.org id=B75027.173609388714026 (code B ref 75027); Sun, 05 Jan 2025 16:19:01 +0000 Received: (at 75027) by debbugs.gnu.org; 5 Jan 2025 16:18:07 +0000 Received: from localhost ([127.0.0.1]:34913 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tUTKI-0003e9-RV for submit@debbugs.gnu.org; Sun, 05 Jan 2025 11:18:07 -0500 Received: from mail.venatores.group ([2001:19f0:9002:2d20:5400:4ff:fe1f:ec4b]:32876) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tUTIw-0003bL-2U for 75027@debbugs.gnu.org; Sun, 05 Jan 2025 11:16:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=venatores.group; s=mail; t=1736093794; bh=p+PvpWn0ejl40Zlfv+RpoJIsImbOKe+6lgEXNdlV+4c=; h=From:To:Subject:Date:From; b=h3EpibO3Xk1E2prZAM9ITp0Lgr1kI1puk0OlftnHryM17lqGabPPbwWgT8Itt8MEf etx420n3ABWyYvn1t8vjFY6GB6krT13LA/iDUtVZAjcj2mfHNz3hAx+yOHXjtBoL9+ xsPFyIvxU3Ekp/Auk9+HDpTIpqXHocrfQ7KwC888hHjOLD2h9hbqjrj5KULkTfdZsV VuV4HpjMbEv8YLSwl5zyjxUHC7iztqU2fUX7kLSrNm9rQFGThWTTYf9X3nt1QP1Ex6 3eoYNKopt0MWasirbWJIFGS/11Cb8b7F2Mx4vYty7bCdWdzTipopNOQwNcPa73Yo0J ND2OcowoysPyw== Date: Sun, 05 Jan 2025 11:16:33 -0500 Message-ID: <87sepxkzha.fsf@venatores.group> MIME-Version: 1.0 Content-Type: text/plain X-Mailman-Approved-At: Sun, 05 Jan 2025 11:18:05 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Sun, 05 Jan 2025 11:30:13 -0500 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: boogs X-ACL-Warn: , boogs via Guix-patches From: boogs via Guix-patches via 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: 5E8AF5EA1 X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -0.98 X-Spam-Score: -0.98 X-TUID: ehgTSJfrsDEI Hi, It looks like some people[1,2] including myself are running into an issue where the `guix system reconfigure` command fails, presumably because `KEXEC_FILE_DEBUG` is not supported in older kernel configurations. The output of reconfiguring my system is the same as Simen's[2] ending in: ``` To complete the upgrade, run 'herd restart SERVICE' to stop, upgrade, and restart each service that was not automatically restarted. Run 'herd status' to view the list of services on your system. WARNING: (guile-user): imported module (guix build utils) overrides core binding `delete' guix system: error: kexec-load-file: Invalid argument ``` My system runs a custom kernel configuration that I created via `make menuconfig` in the kernel repo. I suspect the issue lies here: ``` (define (kexec-loading-program os) "Return a program that calls 'kexec_file_load' to allow rebooting into OS via 'kexec'." (let ((root-device (file-system-device (operating-system-root-file-system os)))) (program-file "kexec-load-system.scm" (with-imported-modules '((guix build syscalls)) #~(begin (use-modules (guix build syscalls)) (let ((kernel (open-fdes #$(operating-system-kernel-file os) O_RDONLY)) (initrd (open-fdes #$(operating-system-initrd-file os) O_RDONLY))) (kexec-load-file kernel initrd (string-join (list #$@(operating-system-kernel-arguments os root-device))) KEXEC_FILE_DEBUG))))))) ``` This is the relevant snippet from my kernel configuration: ``` # # Kexec and crash features # CONFIG_CRASH_CORE=y CONFIG_KEXEC_CORE=y CONFIG_KEXEC=y CONFIG_KEXEC_FILE=y CONFIG_KEXEC_JUMP=y CONFIG_CRASH_DUMP=y CONFIG_CRASH_HOTPLUG=y CONFIG_CRASH_MAX_MEMORY_RANGES=8192 # end of Kexec and crash features # end of General setup ``` [1] https://issues.guix.gnu.org/75320 [2] https://issues.guix.gnu.org/75211 -- Boogs