Blame 0057-drm-module-setup.sh-redirect-grep-to-dev-null.patch
|
Harald Hoyer |
630033 |
From d59732004dac2d173e4a5976184813517d043b50 Mon Sep 17 00:00:00 2001
|
|
Harald Hoyer |
630033 |
From: Harald Hoyer <harald@redhat.com>
|
|
Harald Hoyer |
630033 |
Date: Mon, 18 Mar 2013 14:17:19 +0100
|
|
Harald Hoyer |
630033 |
Subject: [PATCH] drm/module-setup.sh: redirect grep to /dev/null
|
|
Harald Hoyer |
630033 |
|
|
Harald Hoyer |
630033 |
on some architectures, no pci devices exist
|
|
Harald Hoyer |
630033 |
---
|
|
Harald Hoyer |
630033 |
modules.d/50drm/module-setup.sh | 2 +-
|
|
Harald Hoyer |
630033 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
Harald Hoyer |
630033 |
|
|
Harald Hoyer |
630033 |
diff --git a/modules.d/50drm/module-setup.sh b/modules.d/50drm/module-setup.sh
|
|
Harald Hoyer |
630033 |
index e471c11..bf33c5b 100644
|
|
Harald Hoyer |
630033 |
--- a/modules.d/50drm/module-setup.sh
|
|
Harald Hoyer |
630033 |
+++ b/modules.d/50drm/module-setup.sh
|
|
Harald Hoyer |
630033 |
@@ -54,7 +54,7 @@ installkernel() {
|
|
Harald Hoyer |
630033 |
# as we could e.g. be in the installer; nokmsboot boot parameter will disable
|
|
Harald Hoyer |
630033 |
# loading of the driver if needed
|
|
Harald Hoyer |
630033 |
if [[ $hostonly ]] && modinfo -F alias $_modname | sed -e 's,\?,\.,g' -e 's,\*,\.\*,g' \
|
|
Harald Hoyer |
630033 |
- | grep -qxf - /sys/bus/pci/devices/*/modalias; then
|
|
Harald Hoyer |
630033 |
+ | grep -qxf - /sys/bus/pci/devices/*/modalias 2>/dev/null; then
|
|
Harald Hoyer |
630033 |
hostonly='' instmods $_modname
|
|
Harald Hoyer |
630033 |
continue
|
|
Harald Hoyer |
630033 |
fi
|