From: Harald Hoyer Date: Mon, 18 Mar 2013 13:17:19 +0000 (+0100) Subject: drm/module-setup.sh: redirect grep to /dev/null X-Git-Tag: 027~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d59732004dac2d173e4a5976184813517d043b50;p=thirdparty%2Fdracut.git drm/module-setup.sh: redirect grep to /dev/null on some architectures, no pci devices exist --- diff --git a/modules.d/50drm/module-setup.sh b/modules.d/50drm/module-setup.sh index e471c1178..bf33c5b72 100644 --- a/modules.d/50drm/module-setup.sh +++ b/modules.d/50drm/module-setup.sh @@ -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