aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVishal Bhoj <vishal.bhoj@linaro.org>2014-08-07 12:45:34 +0530
committerVishal Bhoj <vishal.bhoj@linaro.org>2014-08-07 12:53:00 +0530
commitc8d405f2064f2bd2e42231c2d8e80377833da30b (patch)
treeaa2f58416aa01e4f6c5191cd62daab8953abe529
parent5661878087f3ac0fba4159401e2e317e033a5bf1 (diff)
Allow mounting,unmounting partition image files for jenkins-build user and archiving the same.
This is needed to unpack and repack the image into a tarball. Change-Id: I226e3f98c323542cfa8cc82bff1875cb071c9db3 Signed-off-by: Vishal Bhoj <vishal.bhoj@linaro.org>
-rwxr-xr-xnode/setup-build-android4
1 files changed, 4 insertions, 0 deletions
diff --git a/node/setup-build-android b/node/setup-build-android
index 5ea87e4..094d94b 100755
--- a/node/setup-build-android
+++ b/node/setup-build-android
@@ -141,3 +141,7 @@ sudo apt-get install -y acpica-tools
echo "jenkins-build ALL = NOPASSWD: /usr/bin/linaro-android-media-create" >>/etc/sudoers
# Allow 'jenkins-build' user to set java version used to build Android
echo "jenkins-build ALL = NOPASSWD: /usr/sbin/update-java-alternatives" >>/etc/sudoers
+# Allow 'jenkins-build' user to mount, umount img files as well as tar the same with --selinux option.
+echo "jenkins-build ALL = NOPASSWD: /bin/mount" >>/etc/sudoers
+echo "jenkins-build ALL = NOPASSWD: /bin/umount" >>/etc/sudoers
+echo "jenkins-build ALL = NOPASSWD: /bin/tar" >>/etc/sudoers