Commit ddfb7c77 by Stéphane Graber Committed by GitHub

Merge pull request #1588 from brauner/2017-05-26/update_opensuse_template

lxc-opensuse: add Tumbleweed as supported release
parents ab373bdf 5b8819a7
...@@ -138,7 +138,11 @@ download_opensuse() ...@@ -138,7 +138,11 @@ download_opensuse()
# download a mini opensuse into a cache # download a mini opensuse into a cache
echo "Downloading opensuse minimal ..." echo "Downloading opensuse minimal ..."
mkdir -p "$cache/partial-$arch-packages" mkdir -p "$cache/partial-$arch-packages"
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 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 # Leap update repos were rearranged
if [[ $DISTRO == "leap/4"* ]]; then 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 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 ...@@ -479,6 +483,10 @@ else
echo "Selected openSUSE Leap 42.2" echo "Selected openSUSE Leap 42.2"
DISTRO="leap/42.2" DISTRO="leap/42.2"
;; ;;
tumbleweed|factory)
echo "Selected openSUSE Leap Tumbleweed"
DISTRO="tumbleweed"
;;
*) *)
echo "You have chosen an invalid release, quitting..." echo "You have chosen an invalid release, quitting..."
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment