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 <chaowang@redhat.com>
Acked-by: Baoquan He <bhe@redhat.com>
This commit is contained in:
WANG Chao 2013-06-13 16:44:23 +08:00 committed by Baoquan He
parent 83ef43e522
commit 56c7c922e1
1 changed files with 5 additions and 0 deletions

View File

@ -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
}