guix system: error: kexec-load-file: Invalid argument

  • Done
  • quality assurance status badge
Details
3 participants
  • Simen Endsjø
  • Ludovic Courtès
  • nathan
Owner
unassigned
Submitted by
Simen Endsjø
Severity
important
S
S
Simen Endsjø wrote on 30 Dec 2024 20:40
(address . bug-guix@gnu.org)
875xn1q7s6.fsf@simendsjo.me
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.

$ guix describe
Generation 348 Dec 30 2024 20:22:30 (current)
nonguix f44a49d
branch: master
commit: f44a49d3092d509c5e09cc27ada40a8c4d99c02d
sijo e05847d
repository URL: file:///home/simendsjo/code/dotfiles
branch: main
commit: e05847d02473861ed2d03a8c1019d3ce5dc1e22a
guix 40b9f33
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
-----BEGIN PGP SIGNATURE-----

iQFJBAEBCAAzFiEEsPLWxSk2lf1XtdJVd7xjRbZdbPsFAmdy9xkVHGNvbnRhY3RA
c2ltZW5kc2pvLm1lAAoJEHe8Y0W2XWz7EAUIAJItD+0BzJdqZdiNUAVFz6rB6UUP
GBf0yv1QxRSVd2zgH8gUP7cP+G3JQYVZxP1ENbClWZU9zukpHhMBgv7XMHMls61h
51uAebBYWClk1kFNwGntcxpe6y58LiphwZ9DTNXuWmaklwt8io1yedvUv9/86rv9
12feEVXLMIXbo2uCX8divxJYCc0I08vQMPig0YRsHb4YIeL2pLDJ2ZMxU2H0IDyx
DcHoohqRtX03fOCQcPWrVIAgG5zq3RvX/UH+I9LJFxgPtBNJgYEiwgphp+ohJNbF
t17RYGxtDNYbVN3ctGSwDLbdBShW58kUk/I3L8p323gPkI9+50WH3MVQ/OM=
=CJvb
-----END PGP SIGNATURE-----

N
N
nathan wrote 4 days ago
(address . 75211@debbugs.gnu.org)(address . contact@simendsjo.me)
b90c451e-a31d-4bec-baad-327a313c9aed@nborghese.com
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

latest longterm tarball
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
L
L
Ludovic Courtès wrote 44 hours ago
(name . nathan)(address . nathan_mail@nborghese.com)
87msg49qms.fsf@gnu.org
Hi,

nathan <nathan_mail@nborghese.com> skribis:

Toggle quote (6 lines)
> 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’.
L
L
Ludovic Courtès wrote 44 hours ago
control message for bug #75211
(address . control@debbugs.gnu.org)
87ldvo9q0u.fsf@gnu.org
severity 75211 important
quit
L
L
Ludovic Courtès wrote 42 hours ago
Re: bug#75211: guix system: error: kexec-load-file: Invalid argument
(name . nathan)(address . nathan_mail@nborghese.com)
871pxg9j0s.fsf@gnu.org
L
L
Ludovic Courtès wrote 9 hours ago
control message for bug #75211
(address . control@debbugs.gnu.org)
87o70ixodz.fsf@gnu.org
close 75211
quit
?
Your comment

Commenting via the web interface is currently disabled.

To comment on this conversation send an email to 75211@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 75211
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch