summaryrefslogtreecommitdiffstats
path: root/mkinitcpio
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2012-09-26 22:04:58 +0200
committerDave Reisner <dreisner@archlinux.org>2012-09-30 00:06:07 +0200
commitcf4188d69685161a8a676bba25db5d6a92e9f3ab (patch)
tree247fc2fd35c508a8fec39f15f8d27c610ca32058 /mkinitcpio
parentc3d068b9ff96b2897cec6a0874ff47e595b77de4 (diff)
downloadmkinitcpio-cf4188d69685161a8a676bba25db5d6a92e9f3ab.tar.gz
mkinitcpio-cf4188d69685161a8a676bba25db5d6a92e9f3ab.tar.xz
functions: always treat ADDED_MODULES as a hash
Overlooked in b8d9c5cd2753e9. This change also assigns a value of "2" to builtin modules which are added to the the ADDED_MODULES array, to distinguish them from actual modules on disk. Using this, we can avoid adding builtins to the image's runtime config. Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Diffstat (limited to 'mkinitcpio')
-rwxr-xr-xmkinitcpio2
1 files changed, 1 insertions, 1 deletions
diff --git a/mkinitcpio b/mkinitcpio
index 766405a..7c9a48a 100755
--- a/mkinitcpio
+++ b/mkinitcpio
@@ -346,7 +346,7 @@ trap '(( $? )) && [[ $FUNCNAME = add_* ]] && (( ++builderrors ))' RETURN
# prime the ADDED_MODULES list with the builtins for this kernel
if [[ -r $MODULEDIR/modules.builtin ]]; then
while read -a path; do
- ADDED_MODULES["${path[-1]%.ko}"]=1
+ ADDED_MODULES["${path[-1]%.ko}"]=2
done <"$MODULEDIR/modules.builtin"
fi