[PR #26] Ship the dracut drop-in in the Debian package #129

Open
opened 2026-10-26 16:41:01 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Zagitta/gpu-unlock/pull/26
Author: @halysondev
Created: 10/24/2026
Status: 🔄 Open

Base: main ← Head: deb-ship-dracut-dropin


📝 Commits (1)

  • bc6342e Ship the dracut drop-in in the Debian package

📊 Changes

4 files changed (+4 additions, -3 deletions)

View changed files

📝 debian/gpu-unlock-dkms.install (+1 -0)
📝 debian/gpu-unlock-dkms.postinst (+1 -1)
📝 debian/gpu-unlock-dkms.postrm (+1 -1)
📝 debian/rules (+1 -1)

📄 Description

Problem

Ubuntu 26.04 uses dracut to build the initramfs; update-initramfs now comes from the dracut package (dpkg -S /usr/sbin/update-initramfs → dracut). The .deb only installed the initramfs-tools drop-in (/usr/share/initramfs-tools/modules.d/gpu-unlock.conf), which dracut ignores. So the images were built without gpu_unlock and its firmware. With gpu_unlock.targets=all set, the module never loaded and dmesg showed nothing.

Fix

debian/rules now also runs the existing install-dracut target, and gpu-unlock-dkms.install ships usr/lib/dracut. Both drop-ins are in the package, so either generator picks up the module. I also updated two maintainer-script comments that referred to initramfs-tools only.

Testing

  • make deb builds and the package tests pass. dpkg-deb -c lists usr/lib/dracut/dracut.conf.d/gpu-unlock.conf next to the initramfs-tools file.
  • Ubuntu 26.04, kernel 7.0.0-38, RTX 3090 (GA102), NVIDIA 595: with the dracut drop-in in place, lsinitramfs shows gpu_unlock.ko.zst and the gpu-unlock/610.43.03 firmware. On the next boot dmesg shows 0000:01:00.0: gpu_unlock: unlocked before nvidia binds.

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Zagitta/gpu-unlock/pull/26 **Author:** [@halysondev](https://github.com/halysondev) **Created:** 10/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `deb-ship-dracut-dropin` --- ### 📝 Commits (1) - [`bc6342e`](https://github.com/Zagitta/gpu-unlock/commit/bc6342e4ceb251bd00fac27a517d0caeb57f1c8d) Ship the dracut drop-in in the Debian package ### 📊 Changes **4 files changed** (+4 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `debian/gpu-unlock-dkms.install` (+1 -0) 📝 `debian/gpu-unlock-dkms.postinst` (+1 -1) 📝 `debian/gpu-unlock-dkms.postrm` (+1 -1) 📝 `debian/rules` (+1 -1) </details> ### 📄 Description ## Problem Ubuntu 26.04 uses dracut to build the initramfs; `update-initramfs` now comes from the `dracut` package (`dpkg -S /usr/sbin/update-initramfs` → `dracut`). The .deb only installed the initramfs-tools drop-in (`/usr/share/initramfs-tools/modules.d/gpu-unlock.conf`), which dracut ignores. So the images were built without `gpu_unlock` and its firmware. With `gpu_unlock.targets=all` set, the module never loaded and dmesg showed nothing. ## Fix `debian/rules` now also runs the existing `install-dracut` target, and `gpu-unlock-dkms.install` ships `usr/lib/dracut`. Both drop-ins are in the package, so either generator picks up the module. I also updated two maintainer-script comments that referred to initramfs-tools only. ## Testing - `make deb` builds and the package tests pass. `dpkg-deb -c` lists `usr/lib/dracut/dracut.conf.d/gpu-unlock.conf` next to the initramfs-tools file. - Ubuntu 26.04, kernel 7.0.0-38, RTX 3090 (GA102), NVIDIA 595: with the dracut drop-in in place, `lsinitramfs` shows `gpu_unlock.ko.zst` and the `gpu-unlock/610.43.03` firmware. On the next boot dmesg shows `0000:01:00.0: gpu_unlock: unlocked` before nvidia binds. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
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#129
No description provided.