diff options
author | Dave Reisner <dreisner@archlinux.org> | 2011-06-27 02:04:44 +0200 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2011-06-27 02:21:54 +0200 |
commit | 8cc35dc1822efd83d38472b1cd3bc78fe889565d (patch) | |
tree | 78f5a49f68a11bcd365efea7f65945fcebc90885 /mkinitcpio | |
parent | 84f474bfc3ceedf9d34bde1df75734fcfcdca239 (diff) | |
download | mkinitcpio-8cc35dc1822efd83d38472b1cd3bc78fe889565d.tar.gz mkinitcpio-8cc35dc1822efd83d38472b1cd3bc78fe889565d.tar.xz |
install/base: use private API call to add config
We can't let add_file get its hands on the config file, because we need
to be sure that an absolute path is honored. As a side effect, ensure
that $BASEDIR is appended to the config file during preset processing.
Thanks-to: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Diffstat (limited to 'mkinitcpio')
-rwxr-xr-x | mkinitcpio | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -209,7 +209,7 @@ if [[ $PRESET ]]; then preset_config=${p}_config if [[ ${!preset_config:-$ALL_config} ]]; then - preset_cmd+=(-c "${!preset_config:-$ALL_config}") + preset_cmd+=(-c "$BASEDIR${!preset_config:-$ALL_config}") else warning "No configuration file specified. Skipping image '%s'" "$p" continue |