Skip to content

Commit

Permalink
Fix the path to the chroot binary inside the busybox image. The
Browse files Browse the repository at this point in the history
path is ``/bin/chroot`` not ``/usr/sbin/chroot``. The ``/usr/sbin/``
directory exists but it is empty.

Tested with ``busybox:1.24`` and ``busybox:latest`` image.
  • Loading branch information
Dan Liew committed Nov 29, 2015
1 parent 9342bb4 commit f833c08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build-vm-docker
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ vm_startup_docker() {
docker rm "$name" >/dev/null 2>&1 || true
docker run \
--rm --name "$name" --cap-add=sys_admin --net=none \
-v "$BUILD_ROOT:/mnt" busybox /usr/sbin/chroot /mnt "$vm_init_script"
-v "$BUILD_ROOT:/mnt" busybox /bin/chroot /mnt "$vm_init_script"
BUILDSTATUS="$?"
test "$BUILDSTATUS" != 255 || BUILDSTATUS=3
cleanup_and_exit "$BUILDSTATUS"
Expand Down

0 comments on commit f833c08

Please sign in to comment.