Skip to contentSkip to conversation

self-hosted-image: Increase space for build and allow builder user sudo access

PATCH In review Saul Wold 1 participant 2 messages Apr 4, 2012

lore
Share & tools
lore

Saul Wold

author
#0 lore raw

PATCH 1/1 self-hosted-image: Increase space for build and allow builder user sudo access

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

---
 meta/recipes-core/images/self-hosted-image.bb |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
meta/recipes-core/images/self-hosted-image.bb +5 -5
index 39f0fc4..46dcc5f 100644
@@ -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; "
Signature · 1 line
1.7.7.6
author
#1 lore raw
Quoted 28 lines · Saul Wold

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

---
  meta/recipes-core/images/self-hosted-image.bb |   10 +++++-----
  1 files changed, 5 insertions(+), 5 deletions(-)
meta/recipes-core/images/self-hosted-image.bb +2 -5
index 39f0fc4..46dcc5f 100644
@@ -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"

meta/recipes-core/images/self-hosted-image.bb fakeroot do_populate_poky_src () { · line 59

Quoted 9 lines
meta/recipes-core/images/self-hosted-image.bb +3 -0
@@ -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!