[oe-commits] [openembedded-core] 24/25: weston-init: run login before start weston.service

git at git.openembedded.org git at git.openembedded.org
Mon Aug 20 09:47:10 UTC 2018


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit c618c49229874238884376dffb194c85ecf0b10a
Author: Wang Quanyang <quanyang.wang at windriver.com>
AuthorDate: Fri Aug 17 11:01:37 2018 -0400

    weston-init: run login before start weston.service
    
    When systemd start the weston.service, the script "weston-start" will
    check if the dir "XDG_RUNTIME_DIR" (usually is /run/user/0) exits and
    create it. Then weston will create a socket file "wayland-0" for communications
    with clients in this dir.
    
    If systemd is built with enabling "pam" feature, the login will call "run-user-0.mount"
    to mount tmpfs at the dir "/run/user/0", then the socket file "wayland-0" will be
    missing since it is created in the old "/run/user/0".
    
    So add "PAMName=login" to let weston.service call login first, once tmpfs is mounted at
    "/run/user/0", then call weston-start to create a socket file in it.
    
    Signed-off-by: Quanyang Wang <quanyang.wang at windriver.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/recipes-graphics/wayland/weston-init/weston.service | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-graphics/wayland/weston-init/weston.service b/meta/recipes-graphics/wayland/weston-init/weston.service
index 689ce41..18f7262 100644
--- a/meta/recipes-graphics/wayland/weston-init/weston.service
+++ b/meta/recipes-graphics/wayland/weston-init/weston.service
@@ -4,6 +4,7 @@ RequiresMountsFor=/run
 
 [Service]
 User=root
+PAMName=login
 EnvironmentFile=-/etc/default/weston
 ExecStart=/usr/bin/weston-start -v -e -- $OPTARGS
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list