(*) add xuser
(*) enable user-session-launch@.service for xuser (seat0-1000)

Signed-off-by: Valentin Popa <valentin.p...@intel.com>
---
 meta/recipes-graphics/wayland/weston-init.bb | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/meta/recipes-graphics/wayland/weston-init.bb 
b/meta/recipes-graphics/wayland/weston-init.bb
index 60cdb8d..6eeeab0 100644
--- a/meta/recipes-graphics/wayland/weston-init.bb
+++ b/meta/recipes-graphics/wayland/weston-init.bb
@@ -13,10 +13,12 @@ do_install() {
        fi
 
        if ${@base_contains("DISTRO_FEATURES", "systemd", "true", "false", d)}; 
then
+               install -d 
${D}/${sysconfdir}/systemd/system/graphical.target.wants
+               ln -sf ${systemd_unitdir}/system/user-session-launch@.service 
${D}/${sysconfdir}/systemd/system/graphical.target.wants/user-session-launch@seat0-1000.service
        fi
 }
 
-inherit allarch update-rc.d
+inherit allarch update-rc.d useradd
 
 RDEPENDS_${PN} = "weston \
                   ${@base_contains('DISTRO_FEATURES', 'sysvinit', 'kbd', '', 
d)} \
@@ -28,3 +30,8 @@ DEPENDS += "weston \
 
 INITSCRIPT_NAME = "${@base_contains('DISTRO_FEATURES', 'sysvinit', 'weston', 
'', d)}"
 INITSCRIPT_PARAMS = "${@base_contains('DISTRO_FEATURES', 'sysvinit', 'start 9 
5 2 . stop 20 0 1 6 .', '', d)}"
+
+USERADD_PACKAGES = "${PN}"
+USERADD_PARAM_${PN} = "--create-home \
+ --groups video,tty,audio,input,weston-launch \
+ --user-group xuser"
-- 
1.9.1

-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Reply via email to