Hi all, We encountered the same problem on Tizen:Generic and fixed it by adding this workaround in the kickstart file:
------------ cat >/usr/lib/udev/rules.d/99-tty.rules <<EOF SUBSYSTEM=="tty", KERNEL=="tty1", GROUP="app", OWNER="app" EOF ------------ The workaround is not specific to IVI: why not removing this rule from udev-rules-ivi and adding it to weston package ? -- Stéphane Desneux Intel OTC - Vannes/FR gpg:1CA35726/DFA9B0232EF80493AF2891FA24E3A2841CA35726 On 08/01/2014 04:33, Wu, Zhiwen wrote: > I found that on IVI device, it defines TTYPath=/dev/tty1 and what "ls -l > /dev/tty1" show it's user id is "app". > And thanks to Kangkai's help. He found that, on IVI image, there is a > udev-rules-ivi package to set udev rules for tty1. Copy this file to my > image, and for now, weston can be launched by user session correctly. > > >> -----Original Message----- >> From: Yang, Chengwei >> Sent: Tuesday, January 07, 2014 8:46 PM >> To: Wu, Zhiwen >> Cc: [email protected] >> Subject: Re: [Dev] systemd: Failed at step STDIN spawing >> /usr/bin/weston-launch: Permission denied >> >> On Tue, Jan 07, 2014 at 10:28:02AM +0000, Wu, Zhiwen wrote: >>> Hi All, >>> I have been trying to bring up a basic wayland image on Intel mobile >>> device. I >> got blocked by running weston-launch in systemd user session. Actually, I >> copied >> what IVI does on systemd stuff for wayland, but it doesn't work for me. The >> error is: >>> >>> "Jun 10 19:23:28 localhost systemd[217]: Failed at step STDIN spawning >> /usr/bin/weston-launch: Permission denied". >>> >>> The related systemd setup for wayland is: >>> ln -s ../[email protected] >>> /usr/lib/systemd/system/graphical.target.wants/user-session-launch@sea >>> t0-5000.service ln -sf weston.target >>> /usr/lib/systemd/user/default.target >>> ln -s ../weston.service /usr/lib/systemd/user/weston.target.wants >>> >>> and the weston.service is: >>> ============================================ >>> [Unit] >>> Description=Weston >>> Requires=dbus.socket >>> >>> [Service] >>> ExecStart=/usr/bin/weston-launch >>> StandardInput=tty >>> TTYPath=/dev/tty10 >> >> Seems it failed to chown /dev/tty10 to the user but failed with "Permission >> denied", what 'ls -l /dev/tty10' looks like. >> >> It should be owned by the user and mode is 0620. >> >> -- >> Thanks, >> Chengwei >> >>> >>> [Install] >>> WantedBy=weston.target >>> ============================================== >>> >>> Do I miss any points? Ps: I used kexec to boot the kernel.bak and add >> "security=none" to cmdline.bak to work around smack check. >>> >>> Thanks >>> ----------- >>> OTC PRC Visualization Team >>> Wu Zhiwen >>> >>> >>> >>> >>> _______________________________________________ >>> Dev mailing list >>> [email protected] >>> https://lists.tizen.org/listinfo/dev > _______________________________________________ > Dev mailing list > [email protected] > https://lists.tizen.org/listinfo/dev > _______________________________________________ Dev mailing list [email protected] https://lists.tizen.org/listinfo/dev
