add modprobe.d file to blacklist nouveau and regenerate initramfs [release 520.56.06-3mamba;Tue Nov 01 2022]
This commit is contained in:
parent
60a551b98f
commit
ea41d7c9fe
18
nvidia.spec
18
nvidia.spec
@ -3,7 +3,7 @@
|
|||||||
Name: nvidia
|
Name: nvidia
|
||||||
Version: 520.56.06
|
Version: 520.56.06
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
Release: 2mamba
|
Release: 3mamba
|
||||||
Summary: NVIDIA proprietary accelerated drivers for the Linux Kernel
|
Summary: NVIDIA proprietary accelerated drivers for the Linux Kernel
|
||||||
Group: System/Kernel and Hardware
|
Group: System/Kernel and Hardware
|
||||||
Vendor: openmamba
|
Vendor: openmamba
|
||||||
@ -241,6 +241,11 @@ install -D -m 644 nvidia-settings.png \
|
|||||||
#_EOF
|
#_EOF
|
||||||
#chmod +x %{buildroot}%{_sysconfdir}/profile.d/nvidia-clutter.sh
|
#chmod +x %{buildroot}%{_sysconfdir}/profile.d/nvidia-clutter.sh
|
||||||
|
|
||||||
|
install -d -m0755 %{buildroot}%{_modprobedir}
|
||||||
|
cat > %{buildroot}%{_modprobedir}/nvidia.conf << _EOF
|
||||||
|
blacklist nouveau
|
||||||
|
_EOF
|
||||||
|
|
||||||
# dkms
|
# dkms
|
||||||
install -d -m0755 %{buildroot}%{_prefix}/src/%{name}-%{version}
|
install -d -m0755 %{buildroot}%{_prefix}/src/%{name}-%{version}
|
||||||
cp -a kernel/* %{buildroot}%{_prefix}/src/%{name}-%{version}/
|
cp -a kernel/* %{buildroot}%{_prefix}/src/%{name}-%{version}/
|
||||||
@ -312,6 +317,13 @@ if [ $1 -eq 0 ]; then
|
|||||||
fi
|
fi
|
||||||
:
|
:
|
||||||
|
|
||||||
|
%posttrans
|
||||||
|
KVER=`uname -r`
|
||||||
|
INITRAMFS=/boot/initramfs-${KVER}.img
|
||||||
|
[ -e ${INITRAMFS} -a %{_modprobedir}/nvidia.conf -nt ${INITRAMFS} ] || continue
|
||||||
|
[ -e /usr/sbin/mkinitrd ] && /usr/sbin/mkinitrd ${INITRAMFS} ${KVER} -f -H -q
|
||||||
|
:
|
||||||
|
|
||||||
%files -n xorg-drv-video-%{name}
|
%files -n xorg-drv-video-%{name}
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
#%{_sysconfdir}/profile.d/nvidia-clutter.sh
|
#%{_sysconfdir}/profile.d/nvidia-clutter.sh
|
||||||
@ -320,6 +332,7 @@ fi
|
|||||||
%{_prefix}/src/%{name}-%{version}/*
|
%{_prefix}/src/%{name}-%{version}/*
|
||||||
/lib/firmware/nvidia/%{version}/gsp.bin
|
/lib/firmware/nvidia/%{version}/gsp.bin
|
||||||
%{_bindir}/nvidia-*
|
%{_bindir}/nvidia-*
|
||||||
|
%{_modprobedir}/nvidia.conf
|
||||||
%{_systemd_util_dir}/system-sleep/nvidia
|
%{_systemd_util_dir}/system-sleep/nvidia
|
||||||
%{_unitdir}/nvidia-hibernate.service
|
%{_unitdir}/nvidia-hibernate.service
|
||||||
%{_unitdir}/nvidia-persistenced.service
|
%{_unitdir}/nvidia-persistenced.service
|
||||||
@ -356,6 +369,9 @@ fi
|
|||||||
%doc current/{NVIDIA_Changelog,README.txt} current/html
|
%doc current/{NVIDIA_Changelog,README.txt} current/html
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Nov 01 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 520.56.06-3mamba
|
||||||
|
- add modprobe.d file to blacklist nouveau and regenerate initramfs
|
||||||
|
|
||||||
* Sat Oct 29 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 520.56.06-2mamba
|
* Sat Oct 29 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 520.56.06-2mamba
|
||||||
- preun: fix removal of previous dkms builds and installations of module
|
- preun: fix removal of previous dkms builds and installations of module
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user