Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Docker Build Images
raspbian-base
Commits
8fc8f212
Commit
8fc8f212
authored
Nov 26, 2018
by
Markus Frosch
Browse files
debootstrap: Copy qemu-arm-static for Docker-in-Docker bind mount
parent
dc7f32fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
debootstrap/make-image.sh
View file @
8fc8f212
...
...
@@ -19,9 +19,15 @@ if [ ! -x /usr/bin/qemu-arm-static ]; then
exit
1
fi
# make a copy to avoid bind mount problems with dind
qemu
=
"
$(
mktemp
)
"
cp
-av
/usr/bin/qemu-arm-static
"
$qemu
"
docker run
-i
$opts
--rm
\
--privileged
\
-e
"TARBALL=
$TARBALL
"
\
-v
/usr/bin/qemu-arm-static
:/usr/bin/qemu-arm-static:ro
\
-v
"
${
qemu
}
:/usr/bin/qemu-arm-static:ro
"
\
-v
"
$(
pwd
)
:/work"
-w
"/work"
\
"
$IMAGE
"
"
$@
"
rm
-f
"
${
qemu
}
"
Write
Preview
Supports
Markdown
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