[arch-projects] [mkinitcpio] [RFC] add_module(): silently ignore built-ins
Matthew Monaco
dgbaley27 at 0x01b.net
Mon Sep 17 09:38:23 EDT 2012
From: Matthew Monaco <matthew.monaco at 0x01b.net>
---
functions | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/functions b/functions
index eee09ec..6368815 100644
--- a/functions
+++ b/functions
@@ -315,6 +315,10 @@ add_module() {
# skip expensive stuff if this module has already been added
in_array "${module//-/_}" "${ADDED_MODULES[@]}" && return
+ if grep -q "/$module.ko$" "$MODULEDIR/modules.builtin" 2>/dev/null; then
+ return 0
+ fi
+
while IFS=':= ' read -r -d '' field value; do
case "$field" in
filename)
--
1.7.12
More information about the arch-projects
mailing list