elements: opensuse-minimal: Add support for building Tumbleweed images
Add DIB_RELEASE=Tumbleweed option in order to build openSUSE Tumbleweed images Change-Id: I44cc04ef5a993c1a7f0078e4161888b52995f247
This commit is contained in:
parent
8abc90b22d
commit
348a6b337a
@ -1,5 +1,6 @@
|
|||||||
export DISTRO_NAME=opensuse
|
export DISTRO_NAME=opensuse
|
||||||
export DIB_RELEASE=${DIB_RELEASE:-42.1}
|
DIB_RELEASE=${DIB_RELEASE:-42.1}
|
||||||
|
export DIB_RELEASE=${DIB_RELEASE,,}
|
||||||
export DIB_OPENSUSE_MIRROR=${DIB_OPENSUSE_MIRROR:-http://download.opensuse.org}
|
export DIB_OPENSUSE_MIRROR=${DIB_OPENSUSE_MIRROR:-http://download.opensuse.org}
|
||||||
case ${DIB_RELEASE} in
|
case ${DIB_RELEASE} in
|
||||||
# We are using "=>" as the assignment symbol since "@" "=" etc could be used in the URI itself.
|
# We are using "=>" as the assignment symbol since "@" "=" etc could be used in the URI itself.
|
||||||
@ -15,6 +16,11 @@ case ${DIB_RELEASE} in
|
|||||||
ZYPPER_REPOS="update=>${DIB_OPENSUSE_MIRROR}/update/leap/${DIB_RELEASE}/oss/ "
|
ZYPPER_REPOS="update=>${DIB_OPENSUSE_MIRROR}/update/leap/${DIB_RELEASE}/oss/ "
|
||||||
ZYPPER_REPOS+="oss=>${DIB_OPENSUSE_MIRROR}/distribution/leap/${DIB_RELEASE}/repo/oss/"
|
ZYPPER_REPOS+="oss=>${DIB_OPENSUSE_MIRROR}/distribution/leap/${DIB_RELEASE}/repo/oss/"
|
||||||
;;
|
;;
|
||||||
|
# Tumbleweed
|
||||||
|
tumbleweed)
|
||||||
|
ZYPPER_REPOS="update=>${DIB_OPENSUSE_MIRROR}/update/${DIB_RELEASE}/ "
|
||||||
|
ZYPPER_REPOS+="oss=>${DIB_OPENSUSE_MIRROR}/${DIB_RELEASE}/repo/oss/"
|
||||||
|
;;
|
||||||
*) echo "Unsupported openSUSE release: ${DIB_RELEASE}"; exit 1 ;;
|
*) echo "Unsupported openSUSE release: ${DIB_RELEASE}"; exit 1 ;;
|
||||||
esac
|
esac
|
||||||
export ZYPPER_REPOS
|
export ZYPPER_REPOS
|
||||||
|
Loading…
Reference in New Issue
Block a user