mirror of
https://github.com/Zagitta/gpu-unlock.git
synced 2026-12-03 19:44:49 +07:00
[GH-ISSUE #151] Debian package never installs the dracut config — module silently missing from initramfs on dracut-based systems (Ubuntu 26.04) #113
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Zagitta/gpu-unlock#113
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?
Originally created by @justinvanhandel on GitHub (Oct 26, 2026).
Original GitHub issue: https://github.com/Zagitta/gpu-unlock/issues/151
What happened
Installed gpu-unlock 1.0.0 on Ubuntu 26.04.1 Server via
make install(install-deb path: gpu-unlock-dkms + gpu-unlock-firmware). DKMS built and registered fine, and the package installed /usr/share/initramfs-tools/modules.d/gpu-unlock.conf. But after reboot there were no gpu_unlock lines in the kernel log at all, and the card was never unlocked: the module is not in the initramfs image.Root cause: Ubuntu 26.04's update-initramfs is a shim adapted for dracut — it builds images by calling
dracut --force(dracut 110 is the actual generator). Dracut does not read initramfs-tools' modules.d drop-ins, so the module is silently omitted from every image.The repo does ship a dracut config (packaging/boot/dracut.conf, force_drivers+=" gpu_unlock "), and the README documents /usr/lib/dracut/dracut.conf.d/gpu-unlock.conf as the dracut location — but the Debian build never installs it: debian/rules runs only install-dkms install-firmware install-initramfs-tools (no install-dracut step), and debian/gpu-unlock-dkms.install ships only usr/src, usr/share/initramfs-tools and the docs. On a dracut-default distro the documented install therefore can't work.
Isolating detail: this machine also has the real initramfs-tools installed, and an image built by invoking mkinitramfs directly does contain the module and firmware and unlocks at boot — which is how the gap was pinned to the dracut path specifically.
Verified workaround: creating the dracut config by hand fixes it completely —
echo 'force_drivers+=" gpu_unlock "' | sudo tee /etc/dracut.conf.d/gpu-unlock.conf
sudo update-initramfs -u -k all
After that, lsinitramfs shows gpu_unlock.ko.zst and the gpu-unlock/610.43.03 firmware in the dracut-built image, and the boot log shows "pci 0000:01:00.0: gpu_unlock: unlocked".
Suggested fix: add an install-dracut step to the Debian packaging that installs packaging/boot/dracut.conf to usr/lib/dracut/dracut.conf.d/gpu-unlock.conf.
Distribution
Ubuntu 26.04.1 LTS (Server)
Kernel
7.0.0-38-generic
Initramfs generator
dracut
gpu-unlock version and install method
af28cbb(1.0.0), make install (install-deb)Output
@mobogojo commented on GitHub (Oct 27, 2026):
Looks like this was fixed in
6081407("Various fixes"), but the commit message says "Cloeses #54 #151…", so GitHub didn't pick up the keyword and the issues stayed open.I built the packages from
6081407withmake debon Ubuntu 26.04.gpu-unlock-dkms_1.1.0_all.debnow ships/usr/lib/dracut/dracut.conf.d/gpu-unlock.conf(force_drivers+=" gpu_unlock "). That file is byte-identical to the/etc/dracut.conf.d/drop-in that got both cards unlocking on a dracut system in #158. I checked the package contents but haven't installed it, so this confirms the fix at packaging level. PR #26 looks superseded by the same commit.@justinvanhandel commented on GitHub (Oct 30, 2026):
OP here — confirming at the install level what @mobogojo found in the package. I've been running the manual drop-in (/etc/dracut.conf.d/gpu-unlock.conf with force_drivers+=" gpu_unlock ") on Ubuntu 26.04 since Oct 25: the stock dracut-built initramfs contains the module and firmware, gpu_unlock loads and unlocks at boot (RTX 3060, 10de:2503), and it has survived kernel updates with no extra steps. Good to see the same config now ships in the package — from the machine that hit the bug, this looks fixed in
6081407. The issues presumably stayed open only because of the "Cloeses" typo in the commit message.