Revert "Add mkinitpcio check for hooks (#73)"

This reverts commit 3a4bb6e3cf.

This breaks in multiple scenarios:
 - Build environment has more initramfs providers than just mkinitcpio. Hook won't be installed in this case.
 - Build environment has only mkinitcpio, but system on which the package is installed does not. Hook will be installed and will error out anyway.
 - Build environment does not have mkinitcpio, but system on which the package is installed does. Hook won't be installed, even though it should.
 - And of course user can always replace their initramfs providers at any time later on while nvidia-tkg packages are still installed. Requiring a rebuild to handle this would be just cumbersome.
pull/75/head
Tk-Glitch 3 years ago
parent 3a4bb6e3cf
commit 033a143af8

@ -1375,10 +1375,8 @@ if [ "$_dkms" = "false" ] || [ "$_dkms" = "full" ]; then
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"
if [[ $(pacman -Qq initramfs) = "mkinitcpio" ]]; then
install -Dm644 "${srcdir}/nvidia-tkg.hook" "${pkgdir}/usr/share/libalpm/hooks/nvidia-tkg.hook"
fi
install -Dm644 "${srcdir}/nvidia-tkg.hook" "${pkgdir}/usr/share/libalpm/hooks/nvidia-tkg.hook"
}
package_nvidia-tkg() {
nvidia-tkg
@ -1498,10 +1496,8 @@ if [ "$_dkms" = "true" ] || [ "$_dkms" = "full" ]; then
echo "nvidia-uvm" |
install -Dm644 /dev/stdin "${pkgdir}/etc/modules-load.d/${pkgname}.conf"
if [[ $(pacman -Qq initramfs) = "mkinitcpio" ]]; then
install -Dm644 "${srcdir}/nvidia-tkg.hook" "${pkgdir}/usr/share/libalpm/hooks/nvidia-tkg.hook"
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"
}
package_nvidia-dkms-tkg() {

Loading…
Cancel
Save