From 56c7c922e1ec748f01f4096ee5a330aaf3b202de Mon Sep 17 00:00:00 2001 From: WANG Chao Date: Thu, 13 Jun 2013 16:44:23 +0800 Subject: [PATCH] dracut-module-setup.sh: kdump module depends on drm module When 1st kernel is using KMS and crash, 2nd kernel can't reset to nomodeset and the screen is black. In this case, user can't observe the boot/dump progress and run commands in shell. So let's pull in drm dracut module to fix this. Signed-off-by: WANG Chao Acked-by: Baoquan He --- dracut-module-setup.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dracut-module-setup.sh b/dracut-module-setup.sh index 72b503d..b8e923f 100755 --- a/dracut-module-setup.sh +++ b/dracut-module-setup.sh @@ -18,6 +18,11 @@ depends() { if sestatus 2>/dev/null | grep -q "SELinux status.*enabled"; then _dep="$_dep selinux" fi + + if [ -d /sys/module/drm/drivers ]; then + _dep="$_dep drm" + fi + echo $_dep return 0 }