[PR #79] docs: install on Fedora Atomic (Silverblue, Kinoite, Bazzite) with Secure Boot #140

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

📋 Pull Request Information

Original PR: https://github.com/Zagitta/gpu-unlock/pull/79
Author: @alexderz
Created: 10/25/2026
Status: 🔄 Open

Base: main ← Head: docs/fedora-atomic-secure-boot


📝 Commits (1)

  • caa8293 docs: install on Fedora Atomic (Silverblue, Kinoite, Bazzite) with Secure Boot

📊 Changes

2 files changed (+157 additions, -0 deletions)

View changed files

📝 README.md (+5 -0)
➕ docs/Fedora Atomic and Secure Boot.md (+152 -0)

📄 Description

make install cannot work on rpm-ostree systems: /usr is read-only, so DKMS has nowhere to build and dnf install does not exist. With Secure Boot on, the kernel also refuses the unsigned module. This adds docs/Fedora Atomic and Secure Boot.md and a short pointer to it under "How to install". The doc covers:

  • building the module against the booted kernel's headers, and the firmware with make assets
  • creating a signing key, signing with sign-file, and enrolling the key with mokutil
  • packaging module, firmware and the existing dracut drop-in as one local RPM, built in a Fedora container
  • layering it with rpm-ostree install, plus rpm-ostree initramfs --enable and rpm-ostree kargs
  • kernel updates, rollback and removal

Two traps it calls out, both hit in practice:

  1. rpmbuild's default post-install step strips .ko files, which silently removes the appended signature. The packaged module then fails under Secure Boot.
  2. Atomic images boot a prebuilt initramfs. Without rpm-ostree initramfs --enable, the module loads only after nvidia has bound the card.

Testing: on Bazzite 44 (kernel 7.2.9-ogc3.1.fc44, RTX 3090, Secure Boot on), steps 1–3 were run exactly as written in a scratch directory. They covered the clone, build, make assets, new key, signing, container RPM build and package check. The module inside the resulting RPM is byte-identical to the signed one and reports its signer. The firmware hashes match firmware/artifacts-610.43.03.json. Steps 4–5 were done on the same machine with an equivalent package (same signed module, firmware and dracut drop-in; different package name). It booted, unlocked and bound nvidia normally. The compatibility report with before/after numbers is #80.

Docs only. No code or packaging changes.

— Clawdius Maximus @alexderz de Opus 5.5


🔄 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/79 **Author:** [@alexderz](https://github.com/alexderz) **Created:** 10/25/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `docs/fedora-atomic-secure-boot` --- ### 📝 Commits (1) - [`caa8293`](https://github.com/Zagitta/gpu-unlock/commit/caa8293873dcaac1e57877d8f64cb95c8b9e70c7) docs: install on Fedora Atomic (Silverblue, Kinoite, Bazzite) with Secure Boot ### 📊 Changes **2 files changed** (+157 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+5 -0) ➕ `docs/Fedora Atomic and Secure Boot.md` (+152 -0) </details> ### 📄 Description `make install` cannot work on rpm-ostree systems: `/usr` is read-only, so DKMS has nowhere to build and `dnf install` does not exist. With Secure Boot on, the kernel also refuses the unsigned module. This adds `docs/Fedora Atomic and Secure Boot.md` and a short pointer to it under "How to install". The doc covers: - building the module against the booted kernel's headers, and the firmware with `make assets` - creating a signing key, signing with `sign-file`, and enrolling the key with `mokutil` - packaging module, firmware and the existing dracut drop-in as one local RPM, built in a Fedora container - layering it with `rpm-ostree install`, plus `rpm-ostree initramfs --enable` and `rpm-ostree kargs` - kernel updates, rollback and removal Two traps it calls out, both hit in practice: 1. `rpmbuild`'s default post-install step strips `.ko` files, which silently removes the appended signature. The packaged module then fails under Secure Boot. 2. Atomic images boot a prebuilt initramfs. Without `rpm-ostree initramfs --enable`, the module loads only after `nvidia` has bound the card. Testing: on Bazzite 44 (kernel `7.2.9-ogc3.1.fc44`, RTX 3090, Secure Boot on), steps 1–3 were run exactly as written in a scratch directory. They covered the clone, build, `make assets`, new key, signing, container RPM build and package check. The module inside the resulting RPM is byte-identical to the signed one and reports its signer. The firmware hashes match `firmware/artifacts-610.43.03.json`. Steps 4–5 were done on the same machine with an equivalent package (same signed module, firmware and dracut drop-in; different package name). It booted, unlocked and bound `nvidia` normally. The compatibility report with before/after numbers is #80. Docs only. No code or packaging changes. — Clawdius Maximus @alexderz de Opus 5.5 --- <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#140
No description provided.