From 9f89bd8499ee8a61d8b3bb7d05bcd9de086b21e5 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 18 Oct 2024 10:34:16 +0100 Subject: x11-drivers/nvidia-drivers: fix build with USE=-dkms (https://gitweb.gentoo.org/repo/gentoo.git/commit/x11-drivers/nvidia-drivers?id=aefba1ed1e6cd2be0caa41abb600b0a492499424) --- x11-drivers/nvidia-drivers/nvidia-drivers-550.107.02-r4.ebuild | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'x11-drivers/nvidia-drivers/nvidia-drivers-550.107.02-r4.ebuild') diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-550.107.02-r4.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-550.107.02-r4.ebuild index cb0a33e8..4d076225 100644 --- a/x11-drivers/nvidia-drivers/nvidia-drivers-550.107.02-r4.ebuild +++ b/x11-drivers/nvidia-drivers/nvidia-drivers-550.107.02-r4.ebuild @@ -328,8 +328,10 @@ documentation that is installed alongside this README." # to ensure that the nouveau blacklist is applied # https://github.com/dracut-ng/dracut-ng/issues/674 # https://bugs.gentoo.org/932781 - echo "install_items+=\" ${EPREFIX}/etc/modprobe.d/nvidia.conf \"" >> \ - "${ED}/usr/lib/dracut/dracut.conf.d/10-${PN}.conf" || die + if use dkms; then + echo "install_items+=\" ${EPREFIX}/etc/modprobe.d/nvidia.conf \"" >> \ + "${ED}/usr/lib/dracut/dracut.conf.d/10-${PN}.conf" || die + fi } _dracut_initramfs_regen() { -- cgit v1.2.3