unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#75211: guix system: error: kexec-load-file: Invalid argument
@ 2024-12-30 19:40 Simen Endsjø
  2025-01-04 16:31 ` nathan via Bug reports for GNU Guix
  0 siblings, 1 reply; 4+ messages in thread
From: Simen Endsjø @ 2024-12-30 19:40 UTC (permalink / raw)
  To: 75211

[-- Attachment #1: Type: text/plain, Size: 2549 bytes --]


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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 515 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#75211: guix system: error: kexec-load-file: Invalid argument
  2024-12-30 19:40 bug#75211: guix system: error: kexec-load-file: Invalid argument Simen Endsjø
@ 2025-01-04 16:31 ` nathan via Bug reports for GNU Guix
  2025-01-06 10:35   ` Ludovic Courtès
  0 siblings, 1 reply; 4+ messages in thread
From: nathan via Bug reports for GNU Guix @ 2025-01-04 16:31 UTC (permalink / raw)
  To: 75211; +Cc: contact

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




^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#75211: guix system: error: kexec-load-file: Invalid argument
  2025-01-04 16:31 ` nathan via Bug reports for GNU Guix
@ 2025-01-06 10:35   ` Ludovic Courtès
  2025-01-06 13:19     ` Ludovic Courtès
  0 siblings, 1 reply; 4+ messages in thread
From: Ludovic Courtès @ 2025-01-06 10:35 UTC (permalink / raw)
  To: nathan; +Cc: contact, 75211

Hi,

nathan <nathan_mail@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’.




^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#75211: guix system: error: kexec-load-file: Invalid argument
  2025-01-06 10:35   ` Ludovic Courtès
@ 2025-01-06 13:19     ` Ludovic Courtès
  0 siblings, 0 replies; 4+ messages in thread
From: Ludovic Courtès @ 2025-01-06 13:19 UTC (permalink / raw)
  To: nathan; +Cc: contact, 75211

See <https://issues.guix.gnu.org/75402>.




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-01-06 13:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-30 19:40 bug#75211: guix system: error: kexec-load-file: Invalid argument Simen Endsjø
2025-01-04 16:31 ` nathan via Bug reports for GNU Guix
2025-01-06 10:35   ` Ludovic Courtès
2025-01-06 13:19     ` Ludovic Courtès

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).