mirror of
https://github.com/Zagitta/gpu-unlock.git
synced 2026-12-03 19:44:49 +07:00
[PR #26] Ship the dracut drop-in in the Debian package #129
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Zagitta/gpu-unlock#129
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/26
Author: @halysondev
Created: 10/24/2026
Status: 🔄 Open
Base:
main← Head:deb-ship-dracut-dropin📝 Commits (1)
bc6342eShip 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-initramfsnow comes from thedracutpackage (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 withoutgpu_unlockand its firmware. Withgpu_unlock.targets=allset, the module never loaded and dmesg showed nothing.Fix
debian/rulesnow also runs the existinginstall-dracuttarget, andgpu-unlock-dkms.installshipsusr/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 debbuilds and the package tests pass.dpkg-deb -clistsusr/lib/dracut/dracut.conf.d/gpu-unlock.confnext to the initramfs-tools file.lsinitramfsshowsgpu_unlock.ko.zstand thegpu-unlock/610.43.03firmware. On the next boot dmesg shows0000:01:00.0: gpu_unlock: unlockedbefore nvidia binds.🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.