diff options
author | Dieter Plaetinck <dieter@plaetinck.be> | 2009-03-11 22:03:44 +0100 |
---|---|---|
committer | Dieter Plaetinck <dieter@plaetinck.be> | 2009-03-11 22:03:44 +0100 |
commit | 207061727ee23e040745771f72670813791748c3 (patch) | |
tree | 84a44d4b878e395d2308cb8a3f2aeda6a23b1861 | |
parent | 73557d9a9f04e454f166326822fb26740d1dbff1 (diff) |
support specifying packages to install as group and by packagename
-rw-r--r-- | examples/generic-install-on-sda | 5 | ||||
-rw-r--r-- | src/core/libs/lib-software.sh | 5 |
2 files changed, 9 insertions, 1 deletions
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 |