Include only wired ethernet drivers, explicitly exclude wireless.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx
--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux