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
eff36624
Commit
eff36624
authored
Oct 30, 2016
by
Christian Brauner
Committed by
GitHub
Oct 30, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1260 from evgeni/find-obs-build-on-debian
find OpenSUSE's build also as obs-build
parents
c6e67838
f1fd15d6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
lxc-opensuse.in
templates/lxc-opensuse.in
+10
-2
No files found.
templates/lxc-opensuse.in
View file @
eff36624
...
@@ -40,6 +40,14 @@ done
...
@@ -40,6 +40,14 @@ done
# Make sure the usual locations are in PATH
# Make sure the usual locations are in PATH
export
PATH
=
$PATH
:/usr/sbin:/usr/bin:/sbin:/bin
export
PATH
=
$PATH
:/usr/sbin:/usr/bin:/sbin:/bin
if
[
-x
/usr/bin/obs-build
]
;
then
BUILD
=
/usr/bin/obs-build
export
BUILD_DIR
=
/usr/lib/obs-build
else
BUILD
=
/usr/bin/build
export
BUILD_DIR
=
/usr/lib/build
fi
configure_opensuse
()
configure_opensuse
()
{
{
rootfs
=
$1
rootfs
=
$1
...
@@ -118,7 +126,7 @@ download_opensuse()
...
@@ -118,7 +126,7 @@ download_opensuse()
cache
=
$1
cache
=
$1
arch
=
$2
arch
=
$2
if
[
!
-x
/usr/bin/build
]
;
then
if
[
!
-x
${
BUILD
}
]
;
then
echo
"Could not create openSUSE template :"
echo
"Could not create openSUSE template :"
echo
"you need to install
\"
build
\"
package"
echo
"you need to install
\"
build
\"
package"
return
1
return
1
...
@@ -200,7 +208,7 @@ EOF
...
@@ -200,7 +208,7 @@ EOF
# openSUSE 13.2 has no noarch directory in update
# openSUSE 13.2 has no noarch directory in update
[
-d
$cache
/partial-
$arch
-packages
/var/cache/zypp/packages/update/noarch
]
||
mkdir
-p
$cache
/partial-
$arch
-packages
/var/cache/zypp/packages/update/noarch
[
-d
$cache
/partial-
$arch
-packages
/var/cache/zypp/packages/update/noarch
]
||
mkdir
-p
$cache
/partial-
$arch
-packages
/var/cache/zypp/packages/update/noarch
CLEAN_BUILD
=
1
BUILD_ARCH
=
"
$arch
"
BUILD_ROOT
=
"
$cache
/partial-
$arch
"
BUILD_DIST
=
"
$cache
/partial-
$arch
-packages/opensuse.conf"
PATH
=
"
$PATH
:
/usr/lib/build"
/usr/lib/build/init_buildsystem
--clean
--configdir
/usr/lib/build
/configs
--cachedir
$cache
/partial-
$arch
-cache
--repository
$cache
/partial-
$arch
-packages
/var/cache/zypp/packages/repo-oss/suse/
$arch
--repository
$cache
/partial-
$arch
-packages
/var/cache/zypp/packages/repo-oss/suse/noarch
--repository
$cache
/partial-
$arch
-packages
/var/cache/zypp/packages/update/
$arch
--repository
$cache
/partial-
$arch
-packages
/var/cache/zypp/packages/update/noarch
||
return
1
CLEAN_BUILD
=
1
BUILD_ARCH
=
"
$arch
"
BUILD_ROOT
=
"
$cache
/partial-
$arch
"
BUILD_DIST
=
"
$cache
/partial-
$arch
-packages/opensuse.conf"
PATH
=
"
$PATH
:
$BUILD_DIR
"
$BUILD_DIR
/init_buildsystem
--clean
--configdir
$BUILD_DIR
/configs
--cachedir
$cache
/partial-
$arch
-cache
--repository
$cache
/partial-
$arch
-packages
/var/cache/zypp/packages/repo-oss/suse/
$arch
--repository
$cache
/partial-
$arch
-packages
/var/cache/zypp/packages/repo-oss/suse/noarch
--repository
$cache
/partial-
$arch
-packages
/var/cache/zypp/packages/update/
$arch
--repository
$cache
/partial-
$arch
-packages
/var/cache/zypp/packages/update/noarch
||
return
1
chroot
$cache
/partial-
$arch
/usr/bin/zypper
--quiet
--non-interactive
ar http://download.opensuse.org/distribution/
$DISTRO
/repo/oss repo-oss
||
return
1
chroot
$cache
/partial-
$arch
/usr/bin/zypper
--quiet
--non-interactive
ar http://download.opensuse.org/distribution/
$DISTRO
/repo/oss repo-oss
||
return
1
if
[
$DISTRO
==
"leap/42.1"
]
;
then
if
[
$DISTRO
==
"leap/42.1"
]
;
then
chroot
$cache
/partial-
$arch
/usr/bin/zypper
--quiet
--non-interactive
ar http://download.opensuse.org/update/
$DISTRO
/oss update
||
return
1
chroot
$cache
/partial-
$arch
/usr/bin/zypper
--quiet
--non-interactive
ar http://download.opensuse.org/update/
$DISTRO
/oss update
||
return
1
...
...
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