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

login
register
mail settings
Submitter Paul Eggleton
Date April 5, 2012, 5:51 p.m.
Message ID <a2d938ab7af93a5644cdccb0ce88f2b767adf80f.1333648154.git.paul.eggleton@linux.intel.com>
Download mbox | patch
Permalink /patch/25221/
State New
Headers show

Comments

Paul Eggleton - April 5, 2012, 5:51 p.m.
From: Dexuan Cui <dexuan.cui@intel.com>

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; "