Harald Hoyer 3957aa
From 7835e1465fb1f26d514e8312384b99bbf358673f Mon Sep 17 00:00:00 2001
Harald Hoyer 3957aa
From: Colin Guthrie <colin@mageia.org>
Harald Hoyer 3957aa
Date: Wed, 30 Nov 2011 22:23:54 +0000
Harald Hoyer 3957aa
Subject: [PATCH] Handle compressed kmods.
Harald Hoyer 3957aa
Harald Hoyer 3957aa
This was orignally from Mandriva patch: dracut-011-plymouth-compressed-kmod.patch
Harald Hoyer 3957aa
---
Harald Hoyer 3957aa
 modules.d/50plymouth/module-setup.sh |    4 ++--
Harald Hoyer 3957aa
 1 files changed, 2 insertions(+), 2 deletions(-)
Harald Hoyer 3957aa
Harald Hoyer 3957aa
diff --git a/modules.d/50plymouth/module-setup.sh b/modules.d/50plymouth/module-setup.sh
Harald Hoyer 3957aa
index 338371f..4ea925e 100755
Harald Hoyer 3957aa
--- a/modules.d/50plymouth/module-setup.sh
Harald Hoyer 3957aa
+++ b/modules.d/50plymouth/module-setup.sh
Harald Hoyer 3957aa
@@ -13,8 +13,8 @@ depends() {
Harald Hoyer 3957aa
 installkernel() {
Harald Hoyer 3957aa
     local _modname
Harald Hoyer 3957aa
     # Include KMS capable drm drivers
Harald Hoyer 3957aa
-    for _modname in $(find "$srcmods/kernel/drivers/gpu/drm" "$srcmods/extra" -name '*.ko' 2>/dev/null); do
Harald Hoyer 3957aa
-        grep -q drm_crtc_init  $_modname && instmods $_modname
Harald Hoyer 3957aa
+    for _modname in $(find "$srcmods/kernel/drivers/gpu/drm" "$srcmods/extra" \( -name '*.ko' -o -name '*.ko.gz' \) 2>/dev/null); do
Harald Hoyer 3957aa
+        zgrep -q drm_crtc_init  $_modname && instmods $_modname
Harald Hoyer 3957aa
     done
Harald Hoyer 3957aa
 }
Harald Hoyer 3957aa