Blacklist Nouveau on closed or open branches (#235)

This commit is contained in:
George Gibbs 2024-05-14 07:45:44 +02:00 committed by GitHub
parent e36962c522
commit 75be81e654
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2024,6 +2024,12 @@ if [ "$_dkms" = "true" ] || [ "$_dkms" = "full" ]; then
install -dm 755 "${pkgdir}"/usr/{lib/modprobe.d,src}
cp -dr --no-preserve='ownership' kernel-dkms "${pkgdir}/usr/src/nvidia-${pkgver}"
install -Dm644 "${srcdir}/nvidia-tkg.hook" "${pkgdir}/usr/share/libalpm/hooks/nvidia-tkg.hook"
install -Dt "${pkgdir}/usr/share/licenses/${pkgname}" -m644 "${srcdir}/${_pkg}/LICENSE"
fi
if [ "$_blacklist_nouveau" = false ]; then
echo "skip blacklist nouveau\n"
else
@ -2032,11 +2038,6 @@ if [ "$_dkms" = "true" ] || [ "$_dkms" = "full" ]; then
echo "nvidia-uvm" |
install -Dm644 /dev/stdin "${pkgdir}/etc/modules-load.d/${pkgname}.conf"
fi
install -Dm644 "${srcdir}/nvidia-tkg.hook" "${pkgdir}/usr/share/libalpm/hooks/nvidia-tkg.hook"
install -Dt "${pkgdir}/usr/share/licenses/${pkgname}" -m644 "${srcdir}/${_pkg}/LICENSE"
fi
}
source /dev/stdin <<EOF
package_$__branchname-dkms-tkg() {