Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] self-hosted-image: Increase space for build and allow builder user sudo access
@ 2012-04-04  0:38 Saul Wold
  2012-04-04  0:54 ` Saul Wold
  0 siblings, 1 reply; 3+ messages in thread
From: Saul Wold @ 2012-04-04  0:38 UTC (permalink / raw)
  To: openembedded-core; +Cc: paul.eggelton

We need to have about 40G to do a full sato build even with rm_work enabled
Add sudo priveleges inorder to allow the builder user to setup the tap/tun
devices needed by runqemu

Signed-off-by: Saul Wold <sgw@linux.intel.com>
---
 meta/recipes-core/images/self-hosted-image.bb |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/meta/recipes-core/images/self-hosted-image.bb b/meta/recipes-core/images/self-hosted-image.bb
index 39f0fc4..46dcc5f 100644
--- a/meta/recipes-core/images/self-hosted-image.bb
+++ b/meta/recipes-core/images/self-hosted-image.bb
@@ -12,11 +12,8 @@ CORE_IMAGE_EXTRA_INSTALL = "\
 
 IMAGE_FEATURES += "x11-mini package-management"
 
-# Ensure there's enough space to do a core-image-minimal build, with rm_work enabled
-IMAGE_ROOTFS_EXTRA_SPACE = "1048576"
-#IMAGE_ROOTFS_EXTRA_SPACE = "2621440"
-#IMAGE_ROOTFS_EXTRA_SPACE = "20971520"
-#IMAGE_ROOTFS_EXTRA_SPACE = "5242880"
+# Ensure there's enough space to do a core-image-sato build, with rm_work enabled
+IMAGE_ROOTFS_EXTRA_SPACE = "41943040"
 
 # Do a quiet boot with limited console messages
 APPEND += "quiet"
@@ -54,6 +51,9 @@ fakeroot do_populate_poky_src () {
 	chown builder.builder ${IMAGE_ROOTFS}/home/builder/pseudo
 
 	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
 }
 
 IMAGE_PREPROCESS_COMMAND += "do_populate_poky_src; "
-- 
1.7.7.6




^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] self-hosted-image: Increase space for build and allow builder user sudo access
  2012-04-04  0:38 [PATCH] self-hosted-image: Increase space for build and allow builder user sudo access Saul Wold
@ 2012-04-04  0:54 ` Saul Wold
  0 siblings, 0 replies; 3+ messages in thread
From: Saul Wold @ 2012-04-04  0:54 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer; +Cc: paul.eggleton

On 04/03/2012 05:38 PM, Saul Wold wrote:
> We need to have about 40G to do a full sato build even with rm_work enabled
> Add sudo priveleges inorder to allow the builder user to setup the tap/tun
> devices needed by runqemu
>
> Signed-off-by: Saul Wold<sgw@linux.intel.com>
> ---
>   meta/recipes-core/images/self-hosted-image.bb |   10 +++++-----
>   1 files changed, 5 insertions(+), 5 deletions(-)
>
> diff --git a/meta/recipes-core/images/self-hosted-image.bb b/meta/recipes-core/images/self-hosted-image.bb
> index 39f0fc4..46dcc5f 100644
> --- a/meta/recipes-core/images/self-hosted-image.bb
> +++ b/meta/recipes-core/images/self-hosted-image.bb
> @@ -12,11 +12,8 @@ CORE_IMAGE_EXTRA_INSTALL = "\
>
>   IMAGE_FEATURES += "x11-mini package-management"
>
> -# Ensure there's enough space to do a core-image-minimal build, with rm_work enabled
> -IMAGE_ROOTFS_EXTRA_SPACE = "1048576"
> -#IMAGE_ROOTFS_EXTRA_SPACE = "2621440"
> -#IMAGE_ROOTFS_EXTRA_SPACE = "20971520"
> -#IMAGE_ROOTFS_EXTRA_SPACE = "5242880"
> +# Ensure there's enough space to do a core-image-sato build, with rm_work enabled
> +IMAGE_ROOTFS_EXTRA_SPACE = "41943040"
>
>   # Do a quiet boot with limited console messages
>   APPEND += "quiet"
> @@ -54,6 +51,9 @@ fakeroot do_populate_poky_src () {
>   	chown builder.builder ${IMAGE_ROOTFS}/home/builder/pseudo
>
>   	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
>   }
>
>   IMAGE_PREPROCESS_COMMAND += "do_populate_poky_src; "

Yup, forgot the PR Bump!  It been fixed in mut

Sau!



^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH] self-hosted-image: Increase space for build and allow builder user sudo access
@ 2012-04-04 14:54 Saul Wold
  0 siblings, 0 replies; 3+ messages in thread
From: Saul Wold @ 2012-04-04 14:54 UTC (permalink / raw)
  To: openembedded-core

We need to have about 40G to do a full sato build even with rm_work enabled
Add sudo priveleges inorder to allow the builder user to setup the tap/tun
devices needed by runqemu

Signed-off-by: Saul Wold <sgw@linux.intel.com>
---
 meta/recipes-core/images/self-hosted-image.bb |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/meta/recipes-core/images/self-hosted-image.bb b/meta/recipes-core/images/self-hosted-image.bb
index 2822189..1db6a7a 100644
--- a/meta/recipes-core/images/self-hosted-image.bb
+++ b/meta/recipes-core/images/self-hosted-image.bb
@@ -4,15 +4,12 @@ LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58 \
                     file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
 
-PR = "r8"
+PR = "r9"
 
 IMAGE_FEATURES += "x11-mini package-management"
 
-# Ensure there's enough space to do a core-image-minimal build, with rm_work enabled
-IMAGE_ROOTFS_EXTRA_SPACE = "1048576"
-#IMAGE_ROOTFS_EXTRA_SPACE = "2621440"
-#IMAGE_ROOTFS_EXTRA_SPACE = "20971520"
-#IMAGE_ROOTFS_EXTRA_SPACE = "5242880"
+# Ensure there's enough space to do a core-image-sato build, with rm_work enabled
+IMAGE_ROOTFS_EXTRA_SPACE = "41943040"
 
 # Do a quiet boot with limited console messages
 APPEND += "quiet"
@@ -50,6 +47,9 @@ fakeroot do_populate_poky_src () {
 	chown builder.builder ${IMAGE_ROOTFS}/home/builder/pseudo
 
 	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
 }
 
 IMAGE_PREPROCESS_COMMAND += "do_populate_poky_src; "
-- 
1.7.7.6




^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-04-04 15:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-04  0:38 [PATCH] self-hosted-image: Increase space for build and allow builder user sudo access Saul Wold
2012-04-04  0:54 ` Saul Wold
  -- strict thread matches above, loose matches on Subject: below --
2012-04-04 14:54 Saul Wold

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox