site  contact  subhomenews

Fix kexec in 6.6.x kernel

November 16, 2026 — BarryK

I have posted recently about being able to rollback to an older kernel. For example, when linux-kernel-old_6.6.161_amd64.sfs is selected to be loaded, at next bootup the inc/05-kernel-change script changes from the 7.2.12 kernel over to the 6.6.161 kernel, using the 'kexec' utility.

That's ok, but if you de-select the linux-kernel-old_6.6.161_amd64.sfs, at next bootup, kexec attempts to swap back to the 7.2.12 kernel, but fails. Just hangs, requiring to hold down the power button to hard power-off. Then when bootup it is ok, back on the 7.2.12 kernel.

I found that CONFIG_KEXEC_FILE is required to be set, but isn't, so have compiled the 6.6.162 kernel, like this:

General setup ->
Kexec and crash features ->
[*] Enable kexec file based system call

...which enables that CONFIG_KEXEC_FILE

Haven't uploaded linux-kernel-old_6.6.162_amd64.sfs, will do so soon.   

Tags: easy