Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
aports
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakub Panek
aports
Commits
12897f2d
Commit
12897f2d
authored
13 years ago
by
Ariadne Conill
Browse files
Options
Downloads
Patches
Plain Diff
buildlab: fix operation with apk-tools 2.1
parent
6a8889a1
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
buildlab.in
+12
-8
12 additions, 8 deletions
buildlab.in
with
12 additions
and
8 deletions
buildlab.in
+
12
−
8
View file @
12897f2d
...
...
@@ -94,40 +94,44 @@ prepare_chroot() {
msg
"Setting up repositories for mirror
$mirror
with version
$version
at
$path
..."
mkdir
-p
"
$path
"
/etc/apk
echo
"http://
$mirror
/alpine/
$version
/
packages/
$arch
/
main"
>>
"
$path
"
/etc/apk/repositories
echo
"http://
$mirror
/alpine/
$version
/
packages/
$arch
/
testing"
>>
"
$path
"
/etc/apk/repositories
echo
"http://
$mirror
/alpine/
$version
/main"
>>
"
$path
"
/etc/apk/repositories
echo
"http://
$mirror
/alpine/
$version
/testing"
>>
"
$path
"
/etc/apk/repositories
if
[
!
-z
"
$enablecache
"
]
;
then
mkdir
-p
"
$path
"
/var/cache/apk
ln
-s
/var/cache/apk
"
$path
"
/etc/apk/cache
fi
mkdir
-p
"
$path
"
/var/lib/apk
echo
"alpine-base"
>
"
$path
"
/var/lib/apk/world
echo
"alpine-base"
>
"
$path
"
/etc/apk/world
mkdir
-p
"
$path
"
/lib/apk/db
mkdir
-p
"
$path
"
/var/lock
mkdir
-p
"
$path
"
/var/cache/apk
mkdir
-p
"
$path
"
/tmp
mkdir
-p
"
$path
"
/etc
cp
/etc/resolv.conf
"
$path
"
/etc/resolv.conf
msg
"Updating package lists..."
apk
--root
$path
--repositories
"
$path
"
/etc/apk/repositories update
apk
--arch
$buildarch
--root
$path
--repositories
"
$path
"
/etc/apk/repositories update
msg
"Installing alpine-base..."
apk
--root
$path
--repositories
"
$path
"
/etc/apk/repositories add
--initdb
alpine-base
apk
--arch
$buildarch
--root
$path
--repositories
"
$path
"
/etc/apk/repositories add
--initdb
alpine-base
msg
"Installing abuild..."
apk
--root
$path
--repositories
"
$path
"
/etc/apk/repositories add
--initdb
abuild
apk
--arch
$buildarch
--root
$path
--repositories
"
$path
"
/etc/apk/repositories add
--initdb
abuild
msg
"Installing build-base..."
apk
--root
$path
--repositories
"
$path
"
/etc/apk/repositories add
--initdb
build-base
apk
--arch
$buildarch
--root
$path
--repositories
"
$path
"
/etc/apk/repositories add
--initdb
build-base
msg
"Adding abuild user..."
do_chroot_action
"
$path
"
adduser
-D
-G
abuild abuild
echo
"abuild ALL=NOPASSWD: ALL"
>>
"
$path
"
/etc/sudoers
chmod
440
"
$path
"
/etc/sudoers
msg
"Generating buildlab signing keys..."
do_chroot_action
"
$path
"
su abuild
-c
"'abuild-keygen -ai'"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment