]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
lxc-opensuse: add Tumbleweed as supported release 1588/head
authorChristian Brauner <christian.brauner@ubuntu.com>
Sat, 27 May 2017 00:52:35 +0000 (02:52 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Mon, 5 Jun 2017 23:40:08 +0000 (01:40 +0200)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
templates/lxc-opensuse.in

index 5e8686bcc3b7b582652a9a3f67e7fcca72068d43..986af05a3344332c923ed6eb359e93da77bfe231 100644 (file)
@@ -138,7 +138,11 @@ download_opensuse()
     # download a mini opensuse into a cache
     echo "Downloading opensuse minimal ..."
     mkdir -p "$cache/partial-$arch-packages"
-    zypper --quiet --root $cache/partial-$arch-packages --non-interactive ar http://download.opensuse.org/distribution/$DISTRO/repo/oss/ repo-oss || return 1
+    if [[ $DISTRO == "tumbleweed" ]]; then
+        zypper --quiet --root $cache/partial-$arch-packages --non-interactive ar http://download.opensuse.org/$DISTRO/repo/oss/ repo-oss || return 1
+    else
+        zypper --quiet --root $cache/partial-$arch-packages --non-interactive ar http://download.opensuse.org/distribution/$DISTRO/repo/oss/ repo-oss || return 1
+    fi
     # Leap update repos were rearranged
     if [[ $DISTRO == "leap/4"* ]]; then
         zypper --quiet --root $cache/partial-$arch-packages --non-interactive ar http://download.opensuse.org/update/$DISTRO/oss/ update || return 1
@@ -479,6 +483,10 @@ else
             echo "Selected openSUSE Leap 42.2"
             DISTRO="leap/42.2"
             ;; 
+        tumbleweed|factory)
+            echo "Selected openSUSE Leap Tumbleweed"
+            DISTRO="tumbleweed"
+            ;;
 
        *)
            echo "You have chosen an invalid release, quitting..."