]> git.proxmox.com Git - mirror_lxc.git/commitdiff
archlinux: Fix default package selection
authorLeonid Isaev <lisaev@umail.iu.edu>
Tue, 1 Apr 2014 02:20:48 +0000 (22:20 -0400)
committerStéphane Graber <stgraber@ubuntu.com>
Fri, 4 Apr 2014 23:04:23 +0000 (19:04 -0400)
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>
templates/lxc-archlinux.in

index 15283df19c2ae66515c8501c02d8ee11e347d42f..b3bc99e92a9cdda1977cc432077c27c5aa3a324f 100644 (file)
@@ -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