[PR #7] [MERGED] Fix mkinitcpio drop-in: module never loads with the systemd hook #22

Closed
opened 2026-10-31 06:58:19 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/nlzy/turing-unlock/pull/7
Author: @coolio986
Created: 10/25/2026
Status: ✅ Merged
Merged: 10/26/2026
Merged by: @nlzy

Base: main ← Head: fix-mkinitcpio-optional-marker


📝 Commits (1)

  • 08e02c1 Fix mkinitcpio drop-in: drop optional marker from turing_unlock

📊 Changes

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

View changed files

📝 packaging/boot/mkinitcpio.conf (+2 -2)

📄 Description

Problem

packaging/boot/mkinitcpio.conf adds turing_unlock? to MODULES. With the systemd hook, mkinitcpio also writes MODULES to /etc/modules-load.d/MODULES.conf in the image without stripping the ?. At boot:

systemd-modules-load[340]: Failed to find module 'turing_unlock?'

The module is in the initramfs but never loads, so turing_unlock.targets= has no effect and nothing is logged by the module.

Fix

Use the plain name turing_unlock in both places. Tradeoff: if DKMS fails to build the module for a kernel, the initramfs build now errors instead of silently skipping it.

Tested

CachyOS x86_64, kernel 7.2.10-1-cachyos, mkinitcpio with the systemd hook, two RTX 2080 Ti 22GB (10de:1e04, subsystem 1458:37c4).

  • Before: the error above, no turing_unlock log lines, module not loaded.
  • After: TU102 FEAT UNLOCKED and Inserted module 'turing_unlock' in the journal for both cards.

Not tested with the sd-encrypt or non-systemd (busybox) mkinitcpio hooks.

🤖 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/nlzy/turing-unlock/pull/7 **Author:** [@coolio986](https://github.com/coolio986) **Created:** 10/25/2026 **Status:** ✅ Merged **Merged:** 10/26/2026 **Merged by:** [@nlzy](https://github.com/nlzy) **Base:** `main` ← **Head:** `fix-mkinitcpio-optional-marker` --- ### 📝 Commits (1) - [`08e02c1`](https://github.com/nlzy/turing-unlock/commit/08e02c152ecaebf8a5000bbe2eb7f81eedef9f07) Fix mkinitcpio drop-in: drop optional marker from turing_unlock ### 📊 Changes **1 file changed** (+2 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `packaging/boot/mkinitcpio.conf` (+2 -2) </details> ### 📄 Description ## Problem `packaging/boot/mkinitcpio.conf` adds `turing_unlock?` to `MODULES`. With the `systemd` hook, mkinitcpio also writes `MODULES` to `/etc/modules-load.d/MODULES.conf` in the image without stripping the `?`. At boot: ``` systemd-modules-load[340]: Failed to find module 'turing_unlock?' ``` The module is in the initramfs but never loads, so `turing_unlock.targets=` has no effect and nothing is logged by the module. ## Fix Use the plain name `turing_unlock` in both places. Tradeoff: if DKMS fails to build the module for a kernel, the initramfs build now errors instead of silently skipping it. ## Tested CachyOS x86_64, kernel 7.2.10-1-cachyos, mkinitcpio with the `systemd` hook, two RTX 2080 Ti 22GB (`10de:1e04`, subsystem `1458:37c4`). - Before: the error above, no `turing_unlock` log lines, module not loaded. - After: `TU102 FEAT UNLOCKED` and `Inserted module 'turing_unlock'` in the journal for both cards. Not tested with the `sd-encrypt` or non-systemd (busybox) mkinitcpio hooks. 🤖 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>
bsakaguchi 2026-10-31 06:58:19 +07:00
Sign in to join this conversation.
No labels
pull-request
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
nlzy/turing-unlock#22
No description provided.