Skip to content

Commit

Permalink
archlinux: Fix default package selection
Browse files Browse the repository at this point in the history
Do not cherry-pick packages for the default install to avoid dependency
issues. Instead, install the base group modulo blacklisted packages.

Signed-off-by: Leonid Isaev <lisaev@umail.iu.edu>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
  • Loading branch information
Leonid Isaev authored and stgraber committed Apr 4, 2014
1 parent b6ac57f commit 12cd132
Showing 1 changed file with 6 additions and 26 deletions.
32 changes: 6 additions & 26 deletions templates/lxc-archlinux.in
Expand Up @@ -47,32 +47,12 @@ default_locale="en-US.UTF-8"
default_timezone="UTC"
pacman_config="/etc/pacman.conf"

# sort of minimal package set
base_packages=(
"systemd"
"systemd-sysvcompat"
"filesystem"
"coreutils"
"kmod"
"procps"
"psmisc"
"pacman"
"bash"
"cronie"
"iproute2"
"iputils"
"inetutils"
"dhcpcd"
"dnsutils"
"nano"
"grep"
"less"
"gawk"
"sed"
"tar"
"gzip"
"which"
)
# by default, install 'base' except the kernel
pkg_blacklist="linux"
base_packages=()
for pkg in $(pacman -Sqg base); do
[ "${pkg_blacklist#*$pkg}" = "$pkg_blacklist" ] && base_packages+=($pkg)
done
declare -a additional_packages

# split comma-separated string into an array
Expand Down

0 comments on commit 12cd132

Please sign in to comment.