]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
Handle compressed kmods.
authorColin Guthrie <colin@mageia.org>
Wed, 30 Nov 2011 22:23:54 +0000 (22:23 +0000)
committerHarald Hoyer <harald@redhat.com>
Mon, 9 Jan 2012 12:26:06 +0000 (13:26 +0100)
This was orignally from Mandriva patch: dracut-011-plymouth-compressed-kmod.patch

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

index 338371f911c64819e3c1797c591b25ceb5235c4a..4ea925e9aed681e10fd5a87cd3130cac6e684a00 100755 (executable)
@@ -13,8 +13,8 @@ depends() {
 installkernel() {
     local _modname
     # Include KMS capable drm drivers
-    for _modname in $(find "$srcmods/kernel/drivers/gpu/drm" "$srcmods/extra" -name '*.ko' 2>/dev/null); do
-        grep -q drm_crtc_init  $_modname && instmods $_modname
+    for _modname in $(find "$srcmods/kernel/drivers/gpu/drm" "$srcmods/extra" \( -name '*.ko' -o -name '*.ko.gz' \) 2>/dev/null); do
+        zgrep -q drm_crtc_init  $_modname && instmods $_modname
     done
 }