]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
Detect KMS capable drm drivers instead of hard coded list.
authorWarren Togami <wtogami@redhat.com>
Tue, 2 Jun 2009 20:51:49 +0000 (16:51 -0400)
committerWarren Togami <wtogami@redhat.com>
Tue, 2 Jun 2009 20:51:49 +0000 (16:51 -0400)
modules.d/50plymouth/install

index 658de59f5e30cbdc1c413a341a8bd6a7346a7e0d..4425beff379f45c47b1586c76957bd52308acc84 100755 (executable)
@@ -4,5 +4,10 @@ inst_hook pre-udev 10 "$moddir"/plymouth-start.sh
 inst_hook pre-pivot 90 "$moddir"/plymouth-newroot.sh
 inst_hook emergency 50 "$moddir"/plymouth-emergency.sh
 inst "$moddir"/cryptroot-ask.sh /sbin/cryptroot-ask
-instmods i915 radeon nouveau
+# Include KMS capable drm drivers
+for modname in `find "/lib/modules/$kernel/kernel/drivers/gpu/drm" -name '*.ko'`; do
+  if nm -uPA $modname | grep -q drm_crtc_init; then
+    instmods $modname
+  fi
+done