Kexec Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] dracut-module-setup: Fix test for inclusion of DRM modules
@ 2017-05-15 11:31 Benjamin Berg
  2017-05-15 13:03 ` Benjamin Berg
  0 siblings, 1 reply; 2+ messages in thread
From: Benjamin Berg @ 2017-05-15 11:31 UTC (permalink / raw)
  To: kexec; +Cc: Benjamin Berg

From: Benjamin Berg <bberg@redhat.com>

The /sys/modules/*/drivers sysfs entries do not exist anymore on newer
kernels which means that the DRM moduels would never be included.
Instead check if there is any device with a "drm" sysfs directory to
decide on whether DRM modules need to be included.
---
 dracut-module-setup.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dracut-module-setup.sh b/dracut-module-setup.sh
index 9f88b4e..8495fd9 100755
--- a/dracut-module-setup.sh
+++ b/dracut-module-setup.sh
@@ -20,7 +20,7 @@ check() {
 depends() {
     local _dep="base shutdown"
 
-    if [ -d /sys/module/drm/drivers ]; then
+    if [ -n "$( find /sys/devices -name drm )" ]; then
         _dep="$_dep drm"
     fi
 
-- 
2.9.3


_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-05-15 13:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-15 11:31 [PATCH] dracut-module-setup: Fix test for inclusion of DRM modules Benjamin Berg
2017-05-15 13:03 ` Benjamin Berg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox