All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] 50drm: Install dracut 50drm module in hostonly mode when drm driver is currently in use.
@ 2013-05-24  8:22 WANG Chao
       [not found] ` <1369383763-24956-1-git-send-email-chaowang-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
  0 siblings, 1 reply; 9+ messages in thread
From: WANG Chao @ 2013-05-24  8:22 UTC (permalink / raw)
  To: harald-H+wXaHxf7aLQT0dZR+AlfA
  Cc: dyoung-H+wXaHxf7aLQT0dZR+AlfA, bhe-H+wXaHxf7aLQT0dZR+AlfA,
	initramfs-u79uwXL29TY76Z2rM5mHXA

Now only 50plymouth module can pull in 50drm and that's very limited.
Because KMS capable drm drivers are much needed in initrd to have a
frame buffer console on the screen.

Particularly, when building kdump initrd, plymouth module is omitted,
but drm is necessary to setup a working screen for one sitting in front
of a monitor.

Signed-off-by: WANG Chao <chaowang-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
---
 modules.d/50drm/module-setup.sh | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/modules.d/50drm/module-setup.sh b/modules.d/50drm/module-setup.sh
index bf33c5b..648e8f4 100644
--- a/modules.d/50drm/module-setup.sh
+++ b/modules.d/50drm/module-setup.sh
@@ -3,6 +3,10 @@
 # ex: ts=8 sw=4 sts=4 et filetype=sh
 
 check() {
+    if [[ $hostonly ]] && [ -d /sys/module/drm/drivers ]; then
+        return 0
+    fi
+
     return 255
 }
 
-- 
1.8.2.1

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

end of thread, other threads:[~2013-05-29 15:12 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-24  8:22 [PATCH] 50drm: Install dracut 50drm module in hostonly mode when drm driver is currently in use WANG Chao
     [not found] ` <1369383763-24956-1-git-send-email-chaowang-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2013-05-28 12:09   ` Harald Hoyer
     [not found]     ` <51A49E65.9000206-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2013-05-29  2:45       ` Dave Young
     [not found]         ` <51A56BC8.2010205-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2013-05-29  6:57           ` WANG Chao
     [not found]             ` <20130529065726.GA28070-UAAZkH0G2Ts1naxU1pY8ZxcY2uh10dtjAL8bYrjMMd8@public.gmane.org>
2013-05-29  9:44               ` Harald Hoyer
     [not found]                 ` <51A5CDE9.4090808-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2013-05-29 10:41                   ` WANG Chao
     [not found]                     ` <20130529104112.GA3727-UAAZkH0G2Ts1naxU1pY8ZxcY2uh10dtjAL8bYrjMMd8@public.gmane.org>
2013-05-29 10:54                       ` Harald Hoyer
     [not found]                         ` <51A5DE55.7020801-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2013-05-29 15:12                           ` WANG Chao
2013-05-29  8:40           ` Harald Hoyer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.