Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 922909

Summary: sys-apps/kexec-tools: system reboots in a broken state due to uninitialized modules
Product: Gentoo Linux Reporter: Luca Santarelli <luca.santarelli>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: UNCONFIRMED ---    
Severity: normal CC: liaoyuan, proxy-maint
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Luca Santarelli 2024-01-25 14:54:02 UTC
As per https://wiki.gentoo.org/wiki/Kexec «Note that kexec may not work correctly due to devices not fully re-initializing when using this method, however that's rare occasion»

This `rare` occasion happens all the time on all my notebooks that use i915 or iwlwifi w/ firmware loading.

A temporary, working, solution is to manually remove the module(s) (`modprobe -r <modulename>`) before rebooting the system.

I propose to add a new environment variable in /etc/conf.d/kexec (MODULES_TO_UNLOAD="") that could be either pre-populated w/ known defaults, or left to the user.

The init script should then perform the `modprobe -r <modulename>` in its stop() method, around current line 196.

Is this proposal acceptable? Is this the right place to discuss it?

Reproducible: Always

Steps to Reproduce:
1. service kexec start
2. reboot

Actual Results:  
Various hardware doesn't work (iwlwifi, power saving on i915, ...)

Expected Results:  
System reboots in a working state
Comment 1 Mike Gilbert gentoo-dev 2024-01-25 21:46:18 UTC
You should report this to the relevant kernel maintainers upstream.