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:
parent
83ef43e522
commit
56c7c922e1
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user