summaryrefslogtreecommitdiff
path: root/src/profiles
diff options
context:
space:
mode:
Diffstat (limited to 'src/profiles')
-rw-r--r--src/profiles/profile-base6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/profiles/profile-base b/src/profiles/profile-base
index 914898a..4c5f77c 100644
--- a/src/profiles/profile-base
+++ b/src/profiles/profile-base
@@ -4,6 +4,7 @@ var_DEFAULTFS="/boot:32:ext2:+ swap:256:swap /:7500:ext3 /home:*:ext3"
var_DESTDIR="/mnt"
var_RUNTIME_PACKAGES=
var_PKG_SOURCE_TYPE='cd'
+var_PKG_FILE=/home/arch/fifa/package-list
var_FILE_URL="file:///src/core/pkg"
var_MIRRORLIST="/etc/pacman.d/mirrorlist"
@@ -52,7 +53,7 @@ worker_prepare_disks ()
}
-# Put the list of packages to be installed in /home/arch/fifa/package-list
+# Put the list of packages to be installed in $var_PKG_FILE
worker_package_list ()
{
#TODO: sensible list of packages
@@ -63,6 +64,9 @@ worker_package_list ()
worker_install_packages ()
{
target_special_fs on
+ [ ! -f $var_PKG_FILE ] && die_error "No package file available!"
+ PKGLIST=`cat $var_PKG_FILE`
+ #TODO: what if $var_PKG_FILE is empty? we should die_error because that's probably not what the user wants.. or can it? will pacman complain?
$PACMAN_TARGET -Sy $PKGLIST || die_error "Package installation FAILED."
target_special_fs off
}