[GH-ISSUE #151] Debian package never installs the dracut config — module silently missing from initramfs on dracut-based systems (Ubuntu 26.04) #113

Open
opened 2026-10-26 16:40:45 +07:00 by bsakaguchi · 2 comments
Owner

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

$ head -12 /usr/sbin/update-initramfs
# Taken from initramfs-tools and adapted for dracut by Benjamin Drung.
$ grep -n 'dracut ' /usr/sbin/update-initramfs | head -3
149:    if dracut ${OPTS} --force "${initramfs}" "${version}"; then

$ sudo lsinitramfs /boot/initrd.img-7.0.0-38-generic | grep -E 'gpu_unlock|gpu-unlock'
(no output — module and firmware absent from the dracut-built image)

$ grep -n 'install-' debian/rules
23:     install-dkms install-firmware install-initramfs-tools

After the manual /etc/dracut.conf.d/gpu-unlock.conf workaround and a rebuild:
$ sudo lsinitramfs /boot/initrd.img-7.0.0-38-generic | grep -E 'gpu_unlock|gpu-unlock'
usr/lib/firmware/gpu-unlock/610.43.03/booter_load_ga102.bin
usr/lib/firmware/gpu-unlock/610.43.03/gsp_boot_desc_ga102.bin
usr/lib/firmware/gpu-unlock/610.43.03/gsp_boot_ga102.bin
usr/lib/firmware/gpu-unlock/610.43.03/gsp_ga10x.bin
usr/lib/firmware/gpu-unlock/610.43.03/v67-ga102-610.43.03.bin
usr/lib/modules/7.0.0-38-generic/updates/dkms/gpu_unlock.ko.zst

$ journalctl -k -b | grep -i gpu_unlock   (reporting boot, after workaround)
Oct 26 01:56:54 llm-server kernel: pci 0000:01:00.0: gpu_unlock: unlocked
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 ```text $ head -12 /usr/sbin/update-initramfs # Taken from initramfs-tools and adapted for dracut by Benjamin Drung. $ grep -n 'dracut ' /usr/sbin/update-initramfs | head -3 149: if dracut ${OPTS} --force "${initramfs}" "${version}"; then $ sudo lsinitramfs /boot/initrd.img-7.0.0-38-generic | grep -E 'gpu_unlock|gpu-unlock' (no output — module and firmware absent from the dracut-built image) $ grep -n 'install-' debian/rules 23: install-dkms install-firmware install-initramfs-tools After the manual /etc/dracut.conf.d/gpu-unlock.conf workaround and a rebuild: $ sudo lsinitramfs /boot/initrd.img-7.0.0-38-generic | grep -E 'gpu_unlock|gpu-unlock' usr/lib/firmware/gpu-unlock/610.43.03/booter_load_ga102.bin usr/lib/firmware/gpu-unlock/610.43.03/gsp_boot_desc_ga102.bin usr/lib/firmware/gpu-unlock/610.43.03/gsp_boot_ga102.bin usr/lib/firmware/gpu-unlock/610.43.03/gsp_ga10x.bin usr/lib/firmware/gpu-unlock/610.43.03/v67-ga102-610.43.03.bin usr/lib/modules/7.0.0-38-generic/updates/dkms/gpu_unlock.ko.zst $ journalctl -k -b | grep -i gpu_unlock (reporting boot, after workaround) Oct 26 01:56:54 llm-server kernel: pci 0000:01:00.0: gpu_unlock: unlocked ```
Author
Owner

@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 6081407 with make deb on Ubuntu 26.04. gpu-unlock-dkms_1.1.0_all.deb now 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.

<!-- gh-comment-id:6455028221 --> @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 6081407 with `make deb` on Ubuntu 26.04. `gpu-unlock-dkms_1.1.0_all.deb` now 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.
Author
Owner

@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.

<!-- gh-comment-id:6512648832 --> @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.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Zagitta/gpu-unlock#113
No description provided.