From 207061727ee23e040745771f72670813791748c3 Mon Sep 17 00:00:00 2001 From: Dieter Plaetinck Date: Wed, 11 Mar 2009 22:03:44 +0100 Subject: support specifying packages to install as group and by packagename --- examples/generic-install-on-sda | 5 +++++ src/core/libs/lib-software.sh | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/examples/generic-install-on-sda b/examples/generic-install-on-sda index 5e05b34..d2bff3c 100644 --- a/examples/generic-install-on-sda +++ b/examples/generic-install-on-sda @@ -6,6 +6,11 @@ AUTOMATIC_SYNC_URL= AUTOMATIC_RUNTIME_REPOSITORIES= AUTOMATIC_RUNTIME_PACKAGES= + +# packages to install +TARGET_GROUPS=base #all packages in this group will be installed +TARGET_PACKAGES=openssh # you can also specify separate packages + worker_intro () { infofy "Automatic procedure running the generic-install-on-sda example config. THIS WILL ERASE AND OVERWRITE YOUR /DEV/SDA. IF YOU DO NOT WANT THIS PRESS CTRL+C WITHIN 10 SECONDS" sleep 10 diff --git a/src/core/libs/lib-software.sh b/src/core/libs/lib-software.sh index 27bd6fd..b9ee8d7 100644 --- a/src/core/libs/lib-software.sh +++ b/src/core/libs/lib-software.sh @@ -26,7 +26,10 @@ run_mkinitcpio() installpkg() { notify "Package installation will begin now. You can watch the output in the progress window. Please be patient." target_special_fs on - run_background pacman_installpkg "$PACMAN_TARGET --noconfirm -S $TARGET_PACKAGES" $TMP_PACMAN_LOG #TODO: There may be something wrong here. See http://projects.archlinux.org/?p=installer.git;a=commitdiff;h=f504e9ecfb9ecf1952bd8dcce7efe941e74db946 ASKDEV (Simo) + + ALL_PACKAGES=$TARGET_PACKAGES + [ -n "$TARGET_GROUPS" ] && ALL_PACKAGES="$ALL_PACKAGES "`list_packages group "$TARGET_GROUPS" | awk '{print $2}'` + run_background pacman_installpkg "$PACMAN_TARGET --noconfirm -S $ALL_PACKAGES" $TMP_PACMAN_LOG #TODO: There may be something wrong here. See http://projects.archlinux.org/?p=installer.git;a=commitdiff;h=f504e9ecfb9ecf1952bd8dcce7efe941e74db946 ASKDEV (Simo) follow_progress " Installing... Please Wait " $TMP_PACMAN_LOG wait_for pacman_installpkg -- cgit v1.2.3-54-g00ecf