mirror of
https://github.com/lxc/lxc-templates.git
synced 2025-03-30 23:07:16 +00:00
Merge pull request #9 from hwoarang/add-leap-15
templates: opensuse: Add support for openSUSE Leap 15
This commit is contained in:
commit
ad989b77a4
@ -150,7 +150,7 @@ download_opensuse()
|
|||||||
|
|
||||||
update_repo_url="http://download.opensuse.org/update/$DISTRO/repo/oss"
|
update_repo_url="http://download.opensuse.org/update/$DISTRO/repo/oss"
|
||||||
# Leap update repos were rearranged
|
# Leap update repos were rearranged
|
||||||
if [[ $DISTRO == "leap/4"* ]]; then
|
if [[ $DISTRO == "leap/4"* ]] || [[ $DISTRO == "leap/1"* ]]; then
|
||||||
update_repo_url="http://download.opensuse.org/update/$DISTRO/oss/"
|
update_repo_url="http://download.opensuse.org/update/$DISTRO/oss/"
|
||||||
fi
|
fi
|
||||||
# tumbleweed has no update repo
|
# tumbleweed has no update repo
|
||||||
@ -199,12 +199,12 @@ EOF
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# dhcpcd is not in the default repos since Leap 42.1, neither in tumbleweed
|
# dhcpcd is not in the default repos since Leap 42.1, neither in tumbleweed
|
||||||
if [[ $DISTRO != "leap/4"* ]] && [[ $DISTRO != "tumbleweed" ]]; then
|
if [[ $DISTRO != "leap/4"* ]] && [[ $DISTRO != "leap/1"* ]] && [[ $DISTRO != "tumbleweed" ]]; then
|
||||||
echo "Support: dhcpcd" >> $cache/partial-$arch-packages/opensuse.conf
|
echo "Support: dhcpcd" >> $cache/partial-$arch-packages/opensuse.conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Leap and tumbleweed doesn't seem to have iproute2 utils installed
|
# Leap and tumbleweed doesn't seem to have iproute2 utils installed
|
||||||
if [[ $DISTRO == "leap/4"* ]] || [[ $DISTRO == "tumbleweed" ]]; then
|
if [[ $DISTRO == "leap/4"* ]] || [[ $DISTRO == "leap/1"* ]] || [[ $DISTRO == "tumbleweed" ]]; then
|
||||||
echo "Support: net-tools iproute2" >> $cache/partial-$arch-packages/opensuse.conf
|
echo "Support: net-tools iproute2" >> $cache/partial-$arch-packages/opensuse.conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -479,8 +479,8 @@ fi
|
|||||||
|
|
||||||
if [ -z "$DISTRO" ]; then
|
if [ -z "$DISTRO" ]; then
|
||||||
echo ""
|
echo ""
|
||||||
echo "No release selected, using openSUSE Leap 42.2"
|
echo "No release selected, using openSUSE Leap 15.0"
|
||||||
DISTRO="leap/42.2"
|
DISTRO="leap/15.0"
|
||||||
else
|
else
|
||||||
echo ""
|
echo ""
|
||||||
case "$DISTRO" in
|
case "$DISTRO" in
|
||||||
@ -492,23 +492,30 @@ else
|
|||||||
echo "Selected openSUSE 13.2"
|
echo "Selected openSUSE 13.2"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
42.1|leap/42.1|leap)
|
42.1|leap/42.1|421)
|
||||||
echo "Selected openSUSE Leap 42.1"
|
echo "Selected openSUSE Leap 42.1"
|
||||||
DISTRO="leap/42.1"
|
DISTRO="leap/42.1"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
42.2|leap/42.2|422)
|
42.2|leap/42.2|422)
|
||||||
echo "Selected openSUSE Leap 42.2"
|
echo "Selected openSUSE Leap 42.2"
|
||||||
DISTRO="leap/42.2"
|
DISTRO="leap/42.2"
|
||||||
;;
|
;;
|
||||||
42.3|leap/42.3|423)
|
|
||||||
echo "Selected openSUSE Leap 42.3"
|
42.3|leap/42.3|423)
|
||||||
DISTRO="leap/42.3"
|
echo "Selected openSUSE Leap 42.3"
|
||||||
;;
|
DISTRO="leap/42.3"
|
||||||
tumbleweed|factory)
|
;;
|
||||||
echo "Selected openSUSE Leap Tumbleweed"
|
|
||||||
DISTRO="tumbleweed"
|
15.0|leap/15.0|150|leap)
|
||||||
;;
|
echo "Selected openSUSE Leap 15.0"
|
||||||
|
DISTRO="leap/15.0"
|
||||||
|
;;
|
||||||
|
|
||||||
|
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..."
|
||||||
|
Loading…
Reference in New Issue
Block a user