Skip to contentSkip to conversation

Include only wired ethernet drivers, explicitly exclude wireless.

DISCUSSION Warren Togami 1 participant 1 message Jun 1, 2009

lore
Share & tools
lore
#0 lore raw

Include only wired ethernet drivers, explicitly exclude wireless. commit 9dcf9cef387f7582eb8e8d6632d768411ead3617

16150964 bytes before
12981291 bytes after
3169673 bytes savings

+# Include wired net drivers, excluding wireless
+for modname in find "/lib/modules/$kernel/kernel/drivers" -name '*.ko'; do
+ if nm -uPA $modname | grep -q eth_type_trans; then
+ if echo "$modname" | grep -q wireless; then
+ continue
+ else
+ instmods $modname
+ fi
+ fi
+done

This got rid of the pesky wireless drivers and lots of irrelevant kernel modules, but I subsequently discovered that it also no longer pulled in sunrpc.ko. Please keep a lookout for other possible side-effects of this change.

Warren Togami
[email protected]
--
To unsubscribe from this list: send the line "unsubscribe initramfs" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html