diff options
author | Dave Reisner <dreisner@archlinux.org> | 2011-07-01 18:07:46 +0200 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2011-07-02 04:15:24 +0200 |
commit | 491a99b8a2531207121d651d8e4b15fe4febbd2b (patch) | |
tree | e0c0634bcfa15bc2facc415ddbd1ff644d8f4d46 /functions | |
parent | 3d42f00ecb01206e27640a40616ca51c71153624 (diff) | |
download | mkinitcpio-491a99b8a2531207121d651d8e4b15fe4febbd2b.tar.gz mkinitcpio-491a99b8a2531207121d651d8e4b15fe4febbd2b.tar.xz |
install modules all at once
build an array of paths to modules, and install them all at once with
mkdir -p and cp --parents. Cuts back on our major source of calls to
install(1).
This is a tad ugly in that it creates some amount of data duplication,
keeping an array of paths in addition to module names. However, turns
out to be a worthwhile tradeoff as merging the two datasets into one
results in the need for massive string trimming.
Diffstat (limited to 'functions')
-rw-r--r-- | functions | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -167,7 +167,8 @@ add_module() { return 1 fi - _add_file "${path#$BASEDIR}" "$path" 644 + # aggregate modules and add them all at once to save some forks + MODPATHS+=("$path") ADDED_MODULES+=("${module//-/_}") # explicit module depends |