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