summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshuai.fu <shuai01.fu@samsung.com>2017-06-29 12:25:03 +0900
committershuai.fu <shuai01.fu@samsung.com>2017-06-29 12:25:03 +0900
commit928a3ba534cd87a97c6c627126f119d8a46ec932 (patch)
treee527936d25834da52133f57fb396afc41ef0243f
parent35918c55aff1ba9cbbecc946551b8ad8892b7ebb (diff)
downloadbuild-928a3ba534cd87a97c6c627126f119d8a46ec932.tar.gz
build-928a3ba534cd87a97c6c627126f119d8a46ec932.tar.bz2
build-928a3ba534cd87a97c6c627126f119d8a46ec932.zip
add --privileged flag in build-vm-docker
Change-Id: I332c81eb126f335bf0339f9d0a15fb2a921de26a Signed-off-by: shuai.fu <shuai01.fu@samsung.com>
-rw-r--r--build-vm-docker4
1 files changed, 2 insertions, 2 deletions
diff --git a/build-vm-docker b/build-vm-docker
index 3a76637..cd1558d 100644
--- a/build-vm-docker
+++ b/build-vm-docker
@@ -32,8 +32,8 @@ vm_startup_docker() {
local docker_server=`cat /etc/hosts | grep docker | cut -f 1`
local docker_port=`cat /etc/hosts | grep docker | cut -f 2`
docker_port=${docker_port#docker}
- docker -H $docker_server:$docker_port rm "$name" >/dev/null 2>&1 || true
- docker -H $docker_server:$docker_port run \
+ docker -H $docker_server:$docker_port rm --privileged "$name" >/dev/null 2>&1 || true
+ docker -H $docker_server:$docker_port run --privileged\
--rm --name "$name" --cap-add=sys_admin --net=none \
-v "$BUILD_ROOT:/mnt" busybox /bin/chroot /mnt "$vm_init_script"
BUILDSTATUS="$?"