Commit 8fc8f212 authored by Markus Frosch's avatar Markus Frosch
Browse files

debootstrap: Copy qemu-arm-static for Docker-in-Docker bind mount

parent dc7f32fb
......@@ -19,9 +19,15 @@ if [ ! -x /usr/bin/qemu-arm-static ]; then
exit 1
# make a copy to avoid bind mount problems with dind
cp -av /usr/bin/qemu-arm-static "$qemu"
docker run -i $opts --rm \
--privileged \
-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}"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment