[PR #161] [CLOSED] deb: install the dracut config so the module lands in the initramfs (#151) #274

Closed
opened 2026-11-07 17:54:40 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Zagitta/gpu-unlock/pull/161
Author: @viwe-monai
Created: 10/26/2026
Status: ❌ Closed

Base: main ← Head: deb-install-dracut-config


📝 Commits (1)

  • eb5f4d0 deb: install the dracut config alongside the initramfs-tools one

📊 Changes

2 files changed (+2 additions, -1 deletions)

View changed files

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

📄 Description

Fixes #151

What

The Debian build never installed the dracut config the repo already ships and the README documents, so on a dracut-default distro (Ubuntu 26.04's update-initramfs is a shim over dracut) gpu_unlock was silently missing from every initramfs image and the card was never unlocked.

  • debian/rules: add install-dracut to override_dh_auto_install, next to install-initramfs-tools.
  • debian/gpu-unlock-dkms.install: ship usr/lib/dracut, alongside usr/share/initramfs-tools.

This is the verified workaround from the issue (creating /usr/lib/dracut/dracut.conf.d/gpu-unlock.conf by hand) done in the build, at the location the README already documents.

Verification

$ make -s install-dracut DESTDIR=/tmp/gpu-unlock-dry && find /tmp/gpu-unlock-dry -type f
/tmp/gpu-unlock-dry/usr/lib/dracut/dracut.conf.d/gpu-unlock.conf

$ make -f debian/rules -n override_dh_auto_install | tail -1
install -Dm644 packaging/boot/dracut.conf .../debian/tmp/usr/lib/dracut/dracut.conf.d/gpu-unlock.conf

No changes to the firmware or DKMS build; make test is untouched.


🔄 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/161 **Author:** [@viwe-monai](https://github.com/viwe-monai) **Created:** 10/26/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `deb-install-dracut-config` --- ### 📝 Commits (1) - [`eb5f4d0`](https://github.com/Zagitta/gpu-unlock/commit/eb5f4d0af2a2a99bbc8c136158460aaa0c8b4d78) deb: install the dracut config alongside the initramfs-tools one ### 📊 Changes **2 files changed** (+2 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `debian/gpu-unlock-dkms.install` (+1 -0) 📝 `debian/rules` (+1 -1) </details> ### 📄 Description Fixes #151 ## What The Debian build never installed the dracut config the repo already ships and the README documents, so on a dracut-default distro (Ubuntu 26.04's `update-initramfs` is a shim over dracut) `gpu_unlock` was silently missing from every initramfs image and the card was never unlocked. - `debian/rules`: add `install-dracut` to `override_dh_auto_install`, next to `install-initramfs-tools`. - `debian/gpu-unlock-dkms.install`: ship `usr/lib/dracut`, alongside `usr/share/initramfs-tools`. This is the verified workaround from the issue (creating `/usr/lib/dracut/dracut.conf.d/gpu-unlock.conf` by hand) done in the build, at the location the README already documents. ## Verification ``` $ make -s install-dracut DESTDIR=/tmp/gpu-unlock-dry && find /tmp/gpu-unlock-dry -type f /tmp/gpu-unlock-dry/usr/lib/dracut/dracut.conf.d/gpu-unlock.conf $ make -f debian/rules -n override_dh_auto_install | tail -1 install -Dm644 packaging/boot/dracut.conf .../debian/tmp/usr/lib/dracut/dracut.conf.d/gpu-unlock.conf ``` No changes to the firmware or DKMS build; `make test` is untouched. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 17:54:40 +07:00
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#274
No description provided.