Patchwork [09/10] builder: Add password for user

login
register
mail settings
Submitter Saul Wold
Date Nov. 14, 2012, 10:21 p.m.
Message ID <8bd2eee2dff901be6e3a2fdbf657acc4dd627fb0.1352931528.git.sgw@linux.intel.com>
Download mbox | patch
Permalink /patch/39067/
State Accepted
Commit 12bfb5b9e7b33671f2f00cb50b12d98d6d698b6e
Headers show

Comments

Saul Wold - Nov. 14, 2012, 10:21 p.m.
This is needed to allow openssh to work correctly for the Eclipse
plugin to have access to the build appliance to view/modify recipes
and lauch builds

Default password is "builder"

Signed-off-by: Saul Wold <sgw@linux.intel.com>
---
 meta/recipes-graphics/builder/builder_0.1.bb |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

Patch

diff --git a/meta/recipes-graphics/builder/builder_0.1.bb b/meta/recipes-graphics/builder/builder_0.1.bb
index 5c12c14..41871d6 100644
--- a/meta/recipes-graphics/builder/builder_0.1.bb
+++ b/meta/recipes-graphics/builder/builder_0.1.bb
@@ -1,7 +1,7 @@ 
 SUMMARY = "New user to do specific job"
 DESCRIPTION = "This recipe create a new user named ${PN}, who is used for specific jobs like building. The task can be auto started via mini X"
 SECTION = "x11"
-PR = "r4"
+PR = "r5"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://builder_hob_start.sh;endline=5;md5=84796c3c41785d86100fdabcbdade00e"
 
@@ -15,10 +15,13 @@  RDEPENDS_${PN} = "mini-x-session"
 
 inherit useradd
 
+# builder user password is "builder"
+BUILDER_PASSWORD ?= ".gLibiNXn0P12"
 USERADD_PACKAGES = "${PN}"
 USERADD_PARAM_${PN} = "--system --create-home \
                        --groups video,tty,audio \
-                       --user-group ${PN}"
+                       --user-group ${PN} \
+                       --password ${BUILDER_PASSWORD}"
 
 do_install () {
 	install -d -m 755 ${D}${sysconfdir}/mini_x/session.d