Merge pull request 'Rebuild initramfs on initial install to include GSP firmware' (#18) from jonathan/nvidia-open-kmod:initramfs-dev into main
Reviewed-on: #18
This commit is contained in:
commit
bb7a6ece6f
@ -21,8 +21,8 @@
|
||||
|
||||
|
||||
Name: %{kmodname}-kmod
|
||||
Version: 610.43.03
|
||||
Release: 1%{?dist}
|
||||
Version: 610.43.02
|
||||
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,10 +129,20 @@ 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
|
||||
* Wed Jul 08 2026 almalinux-bot-nvidia <almalinux-bot-nvidia@almalinux.org> - 610.43.03-1
|
||||
- Update to 610.43.03
|
||||
* Sun Jul 19 2026 Jonathan Wright <jonathan@almalinux.org> - 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 <eabdullin@almalinux.org> - 610.43.02-5
|
||||
- Rebuild for new kernel
|
||||
|
||||
* Mon Jun 22 2026 Eduard Abdullin <eabdullin@almalinux.org> - 610.43.02-4
|
||||
- Rebuild for new kernel
|
||||
|
||||
2
sources
2
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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user