summaryrefslogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2012-05-18 04:01:28 +0200
committerDave Reisner <dreisner@archlinux.org>2012-05-18 15:39:04 +0200
commit0ccb5f6e037bcbb0817cdb76274a37624c28cb5a (patch)
tree063e366e2c142ab73029cc6718e310052fa1b0b6 /install
parenta68d47b4851828688275921e94b9a9e6bef80ca3 (diff)
downloadmkinitcpio-0ccb5f6e037bcbb0817cdb76274a37624c28cb5a.tar.gz
mkinitcpio-0ccb5f6e037bcbb0817cdb76274a37624c28cb5a.tar.xz
mkinitcpio: write image config after install hooks
Break this out of install/base into a separate function. We need to be able to read from the RUNHOOKS array to accurately specify which hooks to execute at runtime. Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Diffstat (limited to 'install')
-rw-r--r--install/base15
1 files changed, 0 insertions, 15 deletions
diff --git a/install/base b/install/base
index 7eff431..1df209b 100644
--- a/install/base
+++ b/install/base
@@ -37,21 +37,6 @@ build() {
add_file "/usr/lib/initcpio/init_functions" "/init_functions"
add_file "/usr/lib/initcpio/init" "/init"
add_file "/usr/lib/modprobe.d/usb-load-ehci-first.conf"
-
- # write a new config file. re-source the config as we can't guarantee the
- # environment hasn't been modified, but subshell it so it doesn't disturb
- # anyone else.
- (
- . "$CONFIG"
-
- # sanitize of any extra whitespace
- read -r -a modules <<< "$MODULES"
-
- {
- (( ${#modules[*]} )) && printf 'MODULES="%s"\n' "${modules[*]%\?}"
- (( ${#hooks[*]} )) && printf 'HOOKS="%s"\n' "${hooks[*]}"
- } >"$BUILDROOT/config"
- )
}
help() {