summaryrefslogtreecommitdiff
path: root/x11-drivers/nvidia-drivers/nvidia-drivers-390.157-r11.ebuild
diff options
context:
space:
mode:
Diffstat (limited to 'x11-drivers/nvidia-drivers/nvidia-drivers-390.157-r11.ebuild')
-rw-r--r--x11-drivers/nvidia-drivers/nvidia-drivers-390.157-r11.ebuild6
1 files changed, 4 insertions, 2 deletions
diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-390.157-r11.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-390.157-r11.ebuild
index 222f9a18..be15e1fb 100644
--- a/x11-drivers/nvidia-drivers/nvidia-drivers-390.157-r11.ebuild
+++ b/x11-drivers/nvidia-drivers/nvidia-drivers-390.157-r11.ebuild
@@ -312,8 +312,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() {