Unload USB XHCI driver at shutdown on hardware #1335
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Since upgrading to 24.11, we've observed that some of our storage servers with certain motherboard revisions don't deconfigure USB devices properly at shutdown, which results in the LUKS key stick getting lost and not reappearing on the bus again after a reboot. This means that these storage servers aren't able to automatically decrypt their data disks when performing maintenance.
This change introduces a workaround to unload the XHCI driver from the kernel very late in the shutdown process just before userland ends, which appears to avoid this problem.
PL-133421
@flyingcircusio/release-managers
Release process
./changelog.sh
PR release workflow (internal)
Design notes
on
oroff
. Example: rate limiting.systemd.shutdown
option to configure the script which removes the kernel module at shutdown time. This can be disabled by overriding the NixOS option in the local host configuration.Security implications