dracut/0057-drm-module-setup.sh-redirect-grep-to-dev-null.patch
Harald Hoyer 6300332c04 dracut-026-62.git20130319
- fix dracut service ordering
Resolves: rhbz#922991
2013-03-19 12:27:22 +01:00

24 lines
1019 B
Diff

From d59732004dac2d173e4a5976184813517d043b50 Mon Sep 17 00:00:00 2001
From: Harald Hoyer <harald@redhat.com>
Date: Mon, 18 Mar 2013 14:17:19 +0100
Subject: [PATCH] drm/module-setup.sh: redirect grep to /dev/null
on some architectures, no pci devices exist
---
modules.d/50drm/module-setup.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules.d/50drm/module-setup.sh b/modules.d/50drm/module-setup.sh
index e471c11..bf33c5b 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