Subject: bug#75211: guix system: error: kexec-load-file: Invalid argument

From: nathan <[email-masked]>
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