Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
5b8819a7
Unverified
Commit
5b8819a7
authored
May 27, 2017
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lxc-opensuse: add Tumbleweed as supported release
Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
c18119e0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
lxc-opensuse.in
templates/lxc-opensuse.in
+8
-0
No files found.
templates/lxc-opensuse.in
View file @
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..."
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment