From 01c1e47953824076d93a12e38c04a1179ea70903 Mon Sep 17 00:00:00 2001 From: Dieter Plaetinck Date: Fri, 31 Oct 2008 15:59:34 +0100 Subject: fix for new libraries system + some pacman variable refactoring --- src/fifa.sh | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/fifa.sh b/src/fifa.sh index ceaac75..bc9020a 100755 --- a/src/fifa.sh +++ b/src/fifa.sh @@ -4,8 +4,9 @@ ###### Set some default variables or get them from the setup script ###### TITLE="Flexible Installer Framework for Arch linux" eval `grep ^LOG= /arch/setup` -PACMAN_RUNTIME=pacman -PACMAN="pacman --root $DESTDIR --config /tmp/pacman.conf --noconfirm" +# flags like --noconfirm should not be specified here. it's up to the profile to decide the interactivity +PACMAN=pacman +PACMAN_TARGET="pacman --root $TARGET_DIR --config /tmp/pacman.conf" @@ -57,9 +58,11 @@ load_profile() load_library () { [ -z "$1" ] && die_error "load_library needs a library argument" - echo "Loading library $1 ..." - library=/arch/$1 - source $library*.sh || die_error "Something went wrong while sourcing library $library*.sh" + for library in $@ + do + echo "Loading library $library ..." + source $library || die_error "Something went wrong while sourcing library $library" + done } @@ -88,8 +91,7 @@ echo "Welcome to $TITLE" mount -o remount,rw / &>/dev/null -load_library lib-archboot/setup -load_library lib-archboot/quickinst +load_library lib/lib-*.sh [ "$1" != base ] && load_profile base load_profile $1 -- cgit v1.2.3-54-g00ecf