summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCristian Iorga <cristian.iorga@intel.com>2012-11-21 21:54:24 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-11-21 20:40:43 +0000
commit06124dbeafb8151a7927c9af88baf8e23fcca363 (patch)
treed144dc4437066a1652c240a3d1f6cde850b66d0f
parent76950d32f1a3426228df33855ba54b63027ce905 (diff)
downloadpoky-06124dbeafb8151a7927c9af88baf8e23fcca363.tar.gz
builder: fix adduser breakage with password
Build Appliance needs to have for the builder user a password set. However, the useradd.bbclass requires the last parameter to be the user's group name. Previously, the password was the last parameter to useradd command. Fixed using the right order for parameters. (From OE-Core rev: 29f2ae0305b9a3db9632a8fe078fedc88f89a9ad) Signed-off-by: Cristian Iorga <cristian.iorga@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-graphics/builder/builder_0.1.bb6
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/recipes-graphics/builder/builder_0.1.bb b/meta/recipes-graphics/builder/builder_0.1.bb
index 41871d6f1b..78d41e578d 100644
--- a/meta/recipes-graphics/builder/builder_0.1.bb
+++ b/meta/recipes-graphics/builder/builder_0.1.bb
@@ -1,7 +1,7 @@
1SUMMARY = "New user to do specific job" 1SUMMARY = "New user to do specific job"
2DESCRIPTION = "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" 2DESCRIPTION = "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"
3SECTION = "x11" 3SECTION = "x11"
4PR = "r5" 4PR = "r6"
5LICENSE = "MIT" 5LICENSE = "MIT"
6LIC_FILES_CHKSUM = "file://builder_hob_start.sh;endline=5;md5=84796c3c41785d86100fdabcbdade00e" 6LIC_FILES_CHKSUM = "file://builder_hob_start.sh;endline=5;md5=84796c3c41785d86100fdabcbdade00e"
7 7
@@ -20,8 +20,8 @@ BUILDER_PASSWORD ?= ".gLibiNXn0P12"
20USERADD_PACKAGES = "${PN}" 20USERADD_PACKAGES = "${PN}"
21USERADD_PARAM_${PN} = "--system --create-home \ 21USERADD_PARAM_${PN} = "--system --create-home \
22 --groups video,tty,audio \ 22 --groups video,tty,audio \
23 --user-group ${PN} \ 23 --password ${BUILDER_PASSWORD} \
24 --password ${BUILDER_PASSWORD}" 24 --user-group ${PN}"
25 25
26do_install () { 26do_install () {
27 install -d -m 755 ${D}${sysconfdir}/mini_x/session.d 27 install -d -m 755 ${D}${sysconfdir}/mini_x/session.d