Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 922909 - sys-apps/kexec-tools: system reboots in a broken state due to uninitialized modules
Summary: sys-apps/kexec-tools: system reboots in a broken state due to uninitialized m...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-25 14:54 UTC by Luca Santarelli
Modified: 2024-03-10 13:51 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.