[OE-core] [PATCH] weston-init: Add possibility to run weston as non-root user
Otavio Salvador
otavio.salvador at ossystems.com.br
Tue Sep 10 21:45:07 UTC 2019
On Tue, Sep 10, 2019 at 6:38 PM Khem Raj <raj.khem at gmail.com> wrote:
...
> do_install() {
> install -Dm755 ${WORKDIR}/init ${D}/${sysconfdir}/init.d/weston
> - install -Dm0644 ${WORKDIR}/weston.service ${D}${systemd_system_unitdir}/weston.service
> -
> + install -Dm0644 ${WORKDIR}/weston at .service ${D}${systemd_system_unitdir}/weston at .service
Not need, as it is done below.
> + install -D -p -m0644 ${WORKDIR}/weston.ini ${D}${sysconfdir}/xdg/weston/weston.ini
> +
> + # Install Weston systemd service and accompanying udev rule
> + install -D -p -m0644 ${WORKDIR}/weston at .service ${D}${systemd_unitdir}/system/weston at .service
This is good. Replace ${systemd_unitdir}/system with ${systemd_system_unitdir}
> + sed -i -e s:/etc:${sysconfdir}:g \
> + -e s:/usr/bin:${bindir}:g \
> + -e s:/var:${localstatedir}:g \
> + ${D}${systemd_unitdir}/system/weston at .service
> + install -D -p -m0644 ${WORKDIR}/71-weston-drm.rules \
> + ${D}${sysconfdir}/udev/rules.d/71-weston-drm.rules
> # Install weston-start script
> install -Dm755 ${WORKDIR}/weston-start ${D}${bindir}/weston-start
> sed -i 's, at DATADIR@,${datadir},g' ${D}${bindir}/weston-start
...
--
Otavio Salvador O.S. Systems
http://www.ossystems.com.br http://code.ossystems.com.br
Mobile: +55 (53) 9 9981-7854 Mobile: +1 (347) 903-9750
More information about the Openembedded-core
mailing list