diff options
author | Wang Quanyang <quanyang.wang@windriver.com> | 2018-08-17 11:01:37 -0400 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-08-20 17:38:23 +0100 |
commit | 99506b0017bdf8dbf42ec5dc048d91a5609dabe3 (patch) | |
tree | a541430f30c54fc0a8df2c300a6b7e2cb03291ea | |
parent | dac65465fbc4501c2b348b26ab32830e28a1a999 (diff) | |
download | poky-99506b0017bdf8dbf42ec5dc048d91a5609dabe3.tar.gz |
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.
(From OE-Core rev: 3cb303ffee8610d41c9a0745d366556c24066bc3)
Signed-off-by: Quanyang Wang <quanyang.wang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-graphics/wayland/weston-init/weston.service | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/recipes-graphics/wayland/weston-init/weston.service b/meta/recipes-graphics/wayland/weston-init/weston.service index 689ce41064..18f72626e0 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 | |||
4 | 4 | ||
5 | [Service] | 5 | [Service] |
6 | User=root | 6 | User=root |
7 | PAMName=login | ||
7 | EnvironmentFile=-/etc/default/weston | 8 | EnvironmentFile=-/etc/default/weston |
8 | ExecStart=/usr/bin/weston-start -v -e -- $OPTARGS | 9 | ExecStart=/usr/bin/weston-start -v -e -- $OPTARGS |
9 | 10 | ||