mkinitrd unification across distributions
 help / color / mirror / Atom feed
* Include only wired ethernet drivers, explicitly exclude wireless.
@ 2009-06-01 22:42 Warren Togami
  0 siblings, 0 replies; only message in thread
From: Warren Togami @ 2009-06-01 22:42 UTC (permalink / raw)
  To: initramfs

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
wtogami-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org
--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-06-01 22:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-01 22:42 Include only wired ethernet drivers, explicitly exclude wireless Warren Togami

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox