The following pull request was submitted through Github.
It can be accessed and reviewed at: https://github.com/lxc/lxc/pull/1588

This e-mail was sent by the LXC bot, direct replies will not reach the author
unless they happen to be subscribed to this list.

=== Description (from pull-request) ===
Signed-off-by: Christian Brauner <[email protected]>
From befa8441d46b2110fc0b0806918a37d0e6c23cdd Mon Sep 17 00:00:00 2001
From: Christian Brauner <[email protected]>
Date: Sat, 27 May 2017 02:52:35 +0200
Subject: [PATCH] lxc-opensuse: add Tumbleweed as supported release

Signed-off-by: Christian Brauner <[email protected]>
---
 templates/lxc-opensuse.in | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/templates/lxc-opensuse.in b/templates/lxc-opensuse.in
index 5e8686bcc..791dfd32d 100644
--- a/templates/lxc-opensuse.in
+++ b/templates/lxc-opensuse.in
@@ -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"
+        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..."
_______________________________________________
lxc-devel mailing list
[email protected]
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to