]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
drm/module-setup.sh: redirect grep to /dev/null
authorHarald Hoyer <harald@redhat.com>
Mon, 18 Mar 2013 13:17:19 +0000 (14:17 +0100)
committerHarald Hoyer <harald@redhat.com>
Mon, 18 Mar 2013 13:17:19 +0000 (14:17 +0100)
on some architectures, no pci devices exist

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

index e471c11780c597bbfe4df6334a420aebc4c6e769..bf33c5b728bc4cc90ac4291b7bc8ed3ecbed466b 100644 (file)
@@ -54,7 +54,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; then
+            | grep -qxf - /sys/bus/pci/devices/*/modalias 2>/dev/null; then
             hostonly='' instmods $_modname
             continue
         fi