]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
Test soc path for modalias needed by drm
authorNicolas Chauvet <kwizart@gmail.com>
Mon, 4 Aug 2014 20:04:37 +0000 (22:04 +0200)
committerHarald Hoyer <harald@redhat.com>
Fri, 15 Aug 2014 10:35:01 +0000 (12:35 +0200)
On ARM, both pci and soc path can be tested for drm.

With this patchset, that was missing in recent kernel,
the tegra_drm case is not needed anymore:
http://patchwork.ozlabs.org/patch/361765/
http://www.spinics.net/lists/linux-tegra/msg17948.html

modules.d/50drm/module-setup.sh

index e25fc9f5ceeee924d949d23721cf305386e4d41c..9a48aaf1142458d5e837c1aab3bef1dbff738bfc 100755 (executable)
@@ -57,7 +57,7 @@ installkernel() {
         # as we could e.g. be in the installer; nokmsboot boot parameter will disable
         # loading of the driver if needed
         if [[ $hostonly ]] && modinfo -F alias $_modname | sed -e 's,\?,\.,g' -e 's,\*,\.\*,g' \
-            | grep -qxf - /sys/bus/pci/devices/*/modalias 2>/dev/null; then
+            | grep -qxf - /sys/bus/{pci/devices,soc/devices/soc?}/*/modalias 2>/dev/null; then
             hostonly='' instmods $_modname
             continue
         fi