Patchwork [1/1] self-hosted-image: use the correct location of the file sudoers

login
register
mail settings
Submitter Dexuan Cui
Date April 5, 2012, 4:04 a.m.
Message ID <a8b5a3ed58d2a136867fc55b53443b59557c6459.1333598600.git.dexuan.cui@intel.com>
Download mbox | patch
Permalink /patch/25175/
State Accepted
Commit 2abeafa7a43736d6fd8b8ecb22c6f3c840093870
Headers show

Comments

Dexuan Cui - April 5, 2012, 4:04 a.m.
Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
---
 meta/recipes-core/images/self-hosted-image.bb |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/meta/recipes-core/images/self-hosted-image.bb b/meta/recipes-core/images/self-hosted-image.bb
index 1db6a7a..d8f4162 100644
--- a/meta/recipes-core/images/self-hosted-image.bb
+++ b/meta/recipes-core/images/self-hosted-image.bb
@@ -49,7 +49,7 @@  fakeroot do_populate_poky_src () {
 	chown -R builder.builder  ${IMAGE_ROOTFS}/home/builder/poky
 
 	# Allow builder to use sudo to setup tap/tun
-	echo "builder ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
+	echo "builder ALL=(ALL) NOPASSWD: ALL" >> ${IMAGE_ROOTFS}/etc/sudoers
 }
 
 IMAGE_PREPROCESS_COMMAND += "do_populate_poky_src; "