]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
50drm: Include drm platform drivers in hostonly
authorNicolas Chauvet <kwizart@gmail.com>
Sat, 26 Sep 2020 11:15:55 +0000 (13:15 +0200)
committerJóhann B. Guðmundsson <johannbg@gmail.com>
Mon, 28 Sep 2020 21:08:12 +0000 (21:08 +0000)
On arm, many drm drivers are located in the plaform bus.

Adding the platform bus will allow drm drivers to be included in the
initramfs when using hostonly mode.

Signed-off-by: Nicolas Chauvet <kwizart@gmail.com>
modules.d/50drm/module-setup.sh

index 81d2e66258d552db662c686fdab9c499284968f9..ad0e6d80805c4d95d51651dfa01f4fdd51d56694 100755 (executable)
@@ -31,7 +31,7 @@ installkernel() {
     # as we could e.g. be in the installer; nokmsboot boot parameter will disable
     # loading of the driver if needed
     if [[ $hostonly ]]; then
-        for i in /sys/bus/{pci/devices,virtio/devices,soc/devices/soc?}/*/modalias; do
+        for i in /sys/bus/{pci/devices,platform/devices,virtio/devices,soc/devices/soc?}/*/modalias; do
             [[ -e $i ]] || continue
             if hostonly="" dracut_instmods --silent -s "drm_crtc_init|drm_dev_register" -S "iw_handler_get_spy" $(<"$i"); then
                 if strstr "$(modinfo -F filename $(<"$i") 2>/dev/null)" radeon.ko; then