From 4e919f35580b52df72d4a62e1ea4d9a9ed758c9b Mon Sep 17 00:00:00 2001 From: Jonathan Wright Date: Sun, 19 Jul 2026 13:55:52 -0500 Subject: [PATCH 1/2] Revert "Update to 610.43.03" This reverts commit 196c7dc65a128bbbea063a67df40d7e9faa594f5. --- nvidia-open-kmod.spec | 8 ++++---- sources | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/nvidia-open-kmod.spec b/nvidia-open-kmod.spec index 87f1b59..7b7abd2 100644 --- a/nvidia-open-kmod.spec +++ b/nvidia-open-kmod.spec @@ -21,8 +21,8 @@ Name: %{kmodname}-kmod -Version: 610.43.03 -Release: 1%{?dist} +Version: 610.43.02 +Release: 5%{?dist} Summary: Kernel module (kmod) for NVIDIA GPU hardware License: GPL-2.0-only and MIT @@ -109,8 +109,8 @@ done %changelog -* Wed Jul 08 2026 almalinux-bot-nvidia - 610.43.03-1 -- Update to 610.43.03 +* Mon Jul 13 2026 Eduard Abdullin - 610.43.02-5 +- Rebuild for new kernel * Mon Jun 22 2026 Eduard Abdullin - 610.43.02-4 - Rebuild for new kernel diff --git a/sources b/sources index fc488a8..c25a1d1 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (open-gpu-kernel-modules-610.43.03.tar.gz) = 6c535fe42868fefdbb8e28096bf9fecf94f17a2d1b658e780016e67078217c4842ed0e50eb12cb2c660a9d69388eae947aef406665cc02b0992902e8ee7a759c +SHA512 (open-gpu-kernel-modules-610.43.02.tar.gz) = 7049f394a7084544fbfea415b5d24c285fe529002cd21fc8b5c81a15468ccf07473b619070997fb04d016d114577d23e69b0a73f8a98e60a1819a07735e50830 From eda753099048fa255c160e0ce60570d6a869482c Mon Sep 17 00:00:00 2001 From: Jonathan Wright Date: Sun, 19 Jul 2026 13:57:01 -0500 Subject: [PATCH 2/2] Rebuild initramfs on initial install to include GSP firmware The open modules load GSP firmware (nvidia//gsp_*.bin) early from the initramfs. On a fresh install the initramfs is regenerated before that firmware is on disk, so the first boot fails with "gsp_*.bin failed with error -2" until a manual "dracut -f". Add a %posttrans that rebuilds the initramfs after every payload in the transaction has landed, guaranteeing the firmware is captured. Gate it to the initial install with a %ghost stamp file, since $1 cannot distinguish install from upgrade in %posttrans. --- nvidia-open-kmod.spec | 34 +++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/nvidia-open-kmod.spec b/nvidia-open-kmod.spec index 7b7abd2..3c5b200 100644 --- a/nvidia-open-kmod.spec +++ b/nvidia-open-kmod.spec @@ -22,7 +22,7 @@ Name: %{kmodname}-kmod Version: 610.43.02 -Release: 5%{?dist} +Release: 6%{?dist} Summary: Kernel module (kmod) for NVIDIA GPU hardware License: GPL-2.0-only and MIT @@ -65,6 +65,28 @@ and newer models of GPU hardware. %files %license COPYING %doc README.md +%dir %{_sharedstatedir}/%{name} +%ghost %{_sharedstatedir}/%{name}/initramfs-rebuilt + + +%posttrans +# The open modules need the GSP firmware (shipped by nvidia-kmod-common) inside +# the initramfs, or early load fails with "gsp_*.bin failed with error -2". +# Some packages regenerate the initramfs before that firmware is on disk; this +# scriptlet runs after every payload has been unpacked, so a rebuild here is +# guaranteed to capture it. Equivalent to the manual "dracut -f". +# +# Only required on the initial install. The stamp below is a ghost file (absent +# from the payload), so it exists only once we create it here; it persists +# across upgrades (the new package owns it too) and is removed on erase. Net +# effect: the rebuild runs on a first install and again after a full +# removal+reinstall, but not on plain upgrades or reinstalls. +if [ ! -e %{_sharedstatedir}/%{name}/initramfs-rebuilt ]; then + if [ -x %{_bindir}/dracut ]; then + %{_bindir}/dracut --force --regenerate-all --quiet || : + touch %{_sharedstatedir}/%{name}/initramfs-rebuilt + fi +fi %prep @@ -107,8 +129,18 @@ for flavor in %{flavors_to_build}; do popd done +# Own the state directory and pre-create the stamp so the ghost entry is +# registered correctly. The stamp is a ghost file, so its contents are not +# shipped; it is (re)created by the posttrans scriptlet on the target system. +install -d %{buildroot}%{_sharedstatedir}/%{name} +touch %{buildroot}%{_sharedstatedir}/%{name}/initramfs-rebuilt + %changelog +* Sun Jul 19 2026 Jonathan Wright - 610.43.02-6 +- Rebuild the initramfs on initial install so the GSP firmware is included, + avoiding a manual dracut -f after install + * Mon Jul 13 2026 Eduard Abdullin - 610.43.02-5 - Rebuild for new kernel