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

From: Simen Endsjø <[email-masked]>
Date: Mon, 30 Dec 2024 20:40:09 +0100

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