Skip to content

Commit

Permalink
Merge pull request #1588 from brauner/2017-05-26/update_opensuse_temp…
Browse files Browse the repository at this point in the history
…late

lxc-opensuse: add Tumbleweed as supported release
  • Loading branch information
stgraber committed Jun 6, 2017
2 parents ab373bd + 5b8819a commit ddfb7c7
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion templates/lxc-opensuse.in
Expand Up @@ -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
Expand Down Expand Up @@ -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..."
Expand Down

0 comments on commit ddfb7c7

Please sign in to comment.