]> git.proxmox.com Git - mirror_lxc.git/commitdiff
templates/opensuse: fix tumbleweed software selection
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 1 Aug 2017 05:48:21 +0000 (07:48 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 1 Aug 2017 07:15:20 +0000 (09:15 +0200)
tumbleweed needs a newer version for a few packages, namely:
* liblua5_3
* bncurses6
* breadline7

As Leap it also has no dhcpd, but udhcp which gets pulled in already.
Further iproute2 and net-tools need manual instalation.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
templates/lxc-opensuse.in

index f4a4564e9cc0fc0e125236d5123b0d14d7234951..9f3a827be114c3854d26ddaff6eac3b5f0b84943 100644 (file)
@@ -162,10 +162,10 @@ download_opensuse()
     cat > $cache/partial-$arch-packages/opensuse.conf << EOF
 Preinstall: aaa_base bash coreutils diffutils
 Preinstall: filesystem fillup glibc grep insserv-compat perl-base
-Preinstall: libbz2-1 libncurses5 pam
-Preinstall: permissions libreadline6 rpm sed tar libz1 libselinux1
+Preinstall: libbz2-1 pam
+Preinstall: permissions rpm sed tar libz1 libselinux1
 Preinstall: liblzma5 libcap2 libacl1 libattr1
-Preinstall: libpopt0 libelf1 liblua5_1
+Preinstall: libpopt0 libelf1
 Preinstall: libpcre1
 
 RunScripts: aaa_base
@@ -178,7 +178,7 @@ Support: iputils
 Support: udev
 Support: netcfg
 Support: hwinfo insserv-compat module-init-tools openSUSE-release openssh
-Support: pwdutils rpcbind sysconfig
+Support: pwdutils sysconfig
 
 Ignore: rpm:suse-build-key,build-key
 Ignore: systemd:systemd-presets-branding
@@ -189,16 +189,21 @@ EOF
        echo "Support: python3-base" >> $cache/partial-$arch-packages/opensuse.conf
     fi
 
-    # dhcpcd is not in the default repos since Leap 42.1
-    if [[ $DISTRO != "leap/4"* ]]
-    then
-    echo "Support: dhcpcd" >> $cache/partial-$arch-packages/opensuse.conf
+    if [[ $DISTRO == "tumbleweed" ]]; then
+       echo "Preinstall: liblua5_3 libncurses6 libreadline7" >> $cache/partial-$arch-packages/opensuse.conf
+    else
+       echo "Preinstall: liblua5_1 libncurses5 libreadline6" >> $cache/partial-$arch-packages/opensuse.conf
+       echo "Support: rpcbind" >> $cache/partial-$arch-packages/opensuse.conf
     fi
 
-    # Leap doesn't seem to have iproute2 utils installed
-    if [[ $DISTRO == "leap/4"* ]]
-    then
-    echo "Support: net-tools iproute2" >> $cache/partial-$arch-packages/opensuse.conf
+    # dhcpcd is not in the default repos since Leap 42.1, neither in tumbleweed
+    if [[ $DISTRO != "leap/4"* ]] && [[ $DISTRO != "tumbleweed" ]]; then
+        echo "Support: dhcpcd" >> $cache/partial-$arch-packages/opensuse.conf
+    fi
+
+    # Leap and tumbleweed doesn't seem to have iproute2 utils installed
+    if [[ $DISTRO == "leap/4"* ]] || [[ $DISTRO == "tumbleweed" ]]; then
+        echo "Support: net-tools iproute2" >> $cache/partial-$arch-packages/opensuse.conf
     fi
 
     if [ "$arch" = "i686" ]; then