mirror of
https://git.yoctoproject.org/poky
synced 2026-02-08 18:02:12 +01:00
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>
34 lines
1.1 KiB
BlitzBasic
34 lines
1.1 KiB
BlitzBasic
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 = "r6"
|
|
LICENSE = "MIT"
|
|
LIC_FILES_CHKSUM = "file://builder_hob_start.sh;endline=5;md5=84796c3c41785d86100fdabcbdade00e"
|
|
|
|
SRC_URI = "file://builder_hob_start.sh \
|
|
file://please_wait_dialog.py \
|
|
"
|
|
|
|
S = "${WORKDIR}"
|
|
|
|
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 \
|
|
--password ${BUILDER_PASSWORD} \
|
|
--user-group ${PN}"
|
|
|
|
do_install () {
|
|
install -d -m 755 ${D}${sysconfdir}/mini_x/session.d
|
|
install -p -m 755 builder_hob_start.sh ${D}${sysconfdir}/mini_x/session.d/
|
|
|
|
chown ${PN}.${PN} ${D}${sysconfdir}/mini_x/session.d/builder_hob_start.sh
|
|
install -p -m 755 please_wait_dialog.py ${D}${sysconfdir}/mini_x
|
|
}
|
|
|