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,19 +2024,20 @@ 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}"
if [ "$_blacklist_nouveau" = false ]; then
echo "skip blacklist nouveau\n"
else
echo -e "blacklist nouveau\nblacklist lbm-nouveau" |
install -Dm644 /dev/stdin "${pkgdir}/usr/lib/modprobe.d/${pkgname}.conf"
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
if [ "$_blacklist_nouveau" = false ]; then
echo "skip blacklist nouveau\n"
else
echo -e "blacklist nouveau\nblacklist lbm-nouveau" |
install -Dm644 /dev/stdin "${pkgdir}/usr/lib/modprobe.d/${pkgname}.conf"
echo "nvidia-uvm" |
install -Dm644 /dev/stdin "${pkgdir}/etc/modules-load.d/${pkgname}.conf"
fi
}
source /dev/stdin <<EOF
package_$__branchname-dkms-tkg() {