mirror of
https://git.yoctoproject.org/poky
synced 2026-02-20 08:29:42 +01:00
The group shutdown had been provided by base-passwd, otherwise, it may cause sysvinit failed to build: $ bitbake xuser-account sysvinit && bitbake xuser-account sysvinit -ccleansstate && bitbake sysvinit [snip] | chown: invalid user: root.shutdown [snip] (From OE-Core rev: d72793ca3cbedca3eaca2a7c62f4c93d3c3af358) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
29 lines
675 B
BlitzBasic
29 lines
675 B
BlitzBasic
SUMMARY = "Creates an 'xuser' account used for running X11"
|
|
LICENSE = "MIT"
|
|
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
|
|
|
|
SRC_URI = "file://system-xuser.conf"
|
|
|
|
inherit allarch useradd
|
|
|
|
do_configure() {
|
|
:
|
|
}
|
|
|
|
do_compile() {
|
|
:
|
|
}
|
|
|
|
do_install() {
|
|
install -D -m 0644 ${WORKDIR}/system-xuser.conf ${D}${sysconfdir}/dbus-1/system.d/system-xuser.conf
|
|
}
|
|
|
|
FILES_${PN} = "${sysconfdir}/dbus-1/system.d/system-xuser.conf"
|
|
|
|
USERADD_PACKAGES = "${PN}"
|
|
USERADD_PARAM_${PN} = "--create-home \
|
|
--groups video,tty,audio,input,shutdown,disk \
|
|
--user-group xuser"
|
|
|
|
ALLOW_EMPTY_${PN} = "1"
|