GNU bug report logs - #75211
guix system: error: kexec-load-file: Invalid argument

Previous Next

Package: guix;

Reported by: Simen Endsjø <contact <at> simendsjo.me>

Date: Mon, 30 Dec 2024 19:41:01 UTC

Severity: important

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 75211 in the body.
You can then email your comments to 75211 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#75211; Package guix. (Mon, 30 Dec 2024 19:41:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Simen Endsjø <contact <at> simendsjo.me>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Mon, 30 Dec 2024 19:41:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Simen Endsjø <contact <at> simendsjo.me>
To: bug-guix <at> gnu.org
Subject: guix system: error: kexec-load-file: Invalid argument
Date: Mon, 30 Dec 2024 20:40:09 +0100
[Message part 1 (text/plain, inline)]
I get the following error when building my system:
    guix system: error: kexec-load-file: Invalid argument

It only happens on one laptop system, and not my servers.
My system configuration is located at https://codeberg.org/simendsjo/dotfiles/src/branch/main/sijo/system/sijo-x1carbon-10th-gen.scm

$ guix describe
Generation 348	Dec 30 2024 20:22:30	(current)
  nonguix f44a49d
    repository URL: https://gitlab.com/nonguix/nonguix
    branch: master
    commit: f44a49d3092d509c5e09cc27ada40a8c4d99c02d
  sijo e05847d
    repository URL: file:///home/simendsjo/code/dotfiles
    branch: main
    commit: e05847d02473861ed2d03a8c1019d3ce5dc1e22a
  guix 40b9f33
    repository URL: https://git.savannah.gnu.org/git/guix.git
    branch: master
    commit: 40b9f330662cdccfa3d279aecc2f447d39f858d4

Here is the full output of reconfiguring the system:

$ sudo guix system   -L ~/code/dotfiles   reconfigure --no-offload   ~/code/dotfiles/sijo/system/sijo-x1carbon-10th-gen.scm
Password:
The following derivation will be built:
  /gnu/store/n7bsh84jnysp9m9h36zwkgwmki2i4xyi-grub.cfg.drv

building /gnu/store/n7bsh84jnysp9m9h36zwkgwmki2i4xyi-grub.cfg.drv...
/gnu/store/fnizs10zjn24vljk2bb9yqgb360kajac-system
/gnu/store/fvyyfqwlzd0jd8kqwrxyyxa8ygfx9vf2-grub.cfg

activating system...
making '/var/guix/profiles/system-475-link' the current system...
populating /etc from /gnu/store/0g20bhp5f6337f2ic92i1x68lm7ziwxs-etc...
setting up privileged programs in '/run/privileged/bin'...
The following derivation will be built:
  /gnu/store/j4jxxzc07ibs4y974zjaf41divh84hc9-install-bootloader.scm.drv

building /gnu/store/j4jxxzc07ibs4y974zjaf41divh84hc9-install-bootloader.scm.drv...
guix system: bootloader successfully installed on '(/boot/efi)'
shepherd: Starting service host-name...
shepherd: Service host-name started.
shepherd: Service host-name running with value "simendsjo-laptop".
shepherd: Service host-name has been started.
shepherd: Starting service user-homes...
shepherd: Service user-homes has been started.
shepherd: Starting service sysctl...
shepherd: Service sysctl has been started.
shepherd: Starting service x11-socket-directory...
shepherd: Service x11-socket-directory has been started.
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
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#75211; Package guix. (Sat, 04 Jan 2025 16:32:01 GMT) Full text and rfc822 format available.

Message #8 received at 75211 <at> debbugs.gnu.org (full text, mbox):

From: nathan <nathan_mail <at> nborghese.com>
To: 75211 <at> debbugs.gnu.org
Cc: contact <at> simendsjo.me
Subject: guix system: error: kexec-load-file: Invalid argument
Date: Sat, 4 Jan 2025 16:31:50 +0000
He is using linux-6.6, which is the same version as guix's linux-lts.

This is probably because older kernels don't support the KEXEC_FILE_DEBUG flag that is passed to kexec-load-file unconditionally.
To fix, remove the use of KEXEC_FILE_DEBUG in guix/scripts/system/reconfigure.scm
I didn't test it, but it makes sense.


proof flag doesn't exist

https://kernel.org/
latest longterm tarball
wget "https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-6.6.69.tar.xz"
tar xf ./linux-6.6.69.tar.xz
grep -r "KEXEC_FILE_DEBUG" ./linux-6.6.69

observe the absence of results.
repeat with the latest stable kernel and observe that it exists.
there is a check on flag validity in /kernel/kexec_file.c using KEXEC_FILE_FLAGS




Information forwarded to bug-guix <at> gnu.org:
bug#75211; Package guix. (Mon, 06 Jan 2025 10:36:02 GMT) Full text and rfc822 format available.

Message #11 received at 75211 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: nathan <nathan_mail <at> nborghese.com>
Cc: contact <at> simendsjo.me, 75211 <at> debbugs.gnu.org
Subject: Re: bug#75211: guix system: error: kexec-load-file: Invalid argument
Date: Mon, 06 Jan 2025 11:35:23 +0100
Hi,

nathan <nathan_mail <at> nborghese.com> skribis:

> He is using linux-6.6, which is the same version as guix's linux-lts.
>
> This is probably because older kernels don't support the KEXEC_FILE_DEBUG flag that is passed to kexec-load-file unconditionally.
> To fix, remove the use of KEXEC_FILE_DEBUG in guix/scripts/system/reconfigure.scm
> I didn't test it, but it makes sense.

Oh, that makes sense.

I’ll propose a patch to remove it.

Thanks,
Ludo’.




Severity set to 'important' from 'normal' Request was from Ludovic Courtès <ludo <at> gnu.org> to control <at> debbugs.gnu.org. (Mon, 06 Jan 2025 10:50:01 GMT) Full text and rfc822 format available.

Information forwarded to bug-guix <at> gnu.org:
bug#75211; Package guix. (Mon, 06 Jan 2025 13:21:02 GMT) Full text and rfc822 format available.

Message #16 received at 75211 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: nathan <nathan_mail <at> nborghese.com>
Cc: contact <at> simendsjo.me, 75211 <at> debbugs.gnu.org
Subject: Re: bug#75211: guix system: error: kexec-load-file: Invalid argument
Date: Mon, 06 Jan 2025 14:19:47 +0100
See <https://issues.guix.gnu.org/75402>.




bug closed, send any further explanations to 75211 <at> debbugs.gnu.org and Simen Endsjø <contact <at> simendsjo.me> Request was from Ludovic Courtès <ludo <at> gnu.org> to control <at> debbugs.gnu.org. (Tue, 07 Jan 2025 22:15:03 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 05 Feb 2025 12:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 191 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.