mirror of
https://github.com/Zagitta/gpu-unlock.git
synced 2026-12-03 19:44:49 +07:00
[PR #34] mkinitcpio: use a resolvable module entry for the systemd hook #127
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Zagitta/gpu-unlock#127
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Zagitta/gpu-unlock/pull/34
Author: @alex-tee
Created: 10/24/2026
Status: 🔄 Open
Base:
main← Head:mkinitcpio-systemd-hook-fix📝 Commits (1)
014779amkinitcpio: use a resolvable module entry for the systemd hook📊 Changes
2 files changed (+33 additions, -8 deletions)
View changed files
📝
packaging/boot/mkinitcpio.conf(+12 -3)📝
tests/test_packaging.py(+21 -5)📄 Description
The packaged drop-in appends
gpu_unlock?to MODULES. The?suffix isa mkinitcpio build-time convention (meaningful only to
add_module), butwith the
systemdhook in HOOKS, MODULES is copied verbatim into/etc/modules-load.d/MODULES.conf, where kmod cannot resolve the suffix:so on systemd-hook systems the module is never inserted and the card
stays stock.
nvidiabinds it a moment later.This resolves the entry at config-parse time with
modinfo -k $KERNELVERSION, which is available when mkinitcpio sourcesthe config:
(
gpu_unlock), which both the busybox init and the systemd hook'smodules-load.d copy load correctly, still right before
nvidiakeep succeeding (previously covered by the
?skip)The packaging test now mocks
modinfovia PATH so both the resolved andunresolved paths are deterministic on any machine.
Verified on Arch Linux: mkinitcpio 42.2,
systemdhook, GRUB, kernel7.2.11-arch1-1, NVIDIA 615.78.08 (nvidia-open), RTX 3090 at 0000:01:00.0.
The image's
etc/modules-load.d/MODULES.confcontainsgpu_unlock, anda cold boot logs:
Fixes #29
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.