* [OE-core][PATCH] weston-init: Set $HOME variable for SysVinit manager. SysVinit sets by default the $HOME directory to "/" for the init scripts. It's picked then by the weston-launcher and make weston-terminal to have wrongly set $HOME environment variable for the root user.
@ 2021-03-15 14:01 Adrian
2021-03-15 15:06 ` Adrian
0 siblings, 1 reply; 2+ messages in thread
From: Adrian @ 2021-03-15 14:01 UTC (permalink / raw)
To: openembedded-core; +Cc: Adrian Fiergolski
Signed-off-by: Adrian Fiergolski <adrian.fiergolski@fastree3d.com>
---
meta/recipes-graphics/wayland/weston-init.bb | 1 +
meta/recipes-graphics/wayland/weston-init/init | 1 +
2 files changed, 2 insertions(+)
diff --git a/meta/recipes-graphics/wayland/weston-init.bb b/meta/recipes-graphics/wayland/weston-init.bb
index 65d7b81dc5..6b78e6722f 100644
--- a/meta/recipes-graphics/wayland/weston-init.bb
+++ b/meta/recipes-graphics/wayland/weston-init.bb
@@ -30,6 +30,7 @@ DEFAULTBACKEND_x86-x32 = "fbdev"
do_install() {
if [ "${VIRTUAL-RUNTIME_init_manager}" != "systemd" ]; then
install -Dm755 ${WORKDIR}/init ${D}/${sysconfdir}/init.d/weston
+ sed -i 's#ROOTHOME#${ROOT_HOME}#' ${D}/${sysconfdir}/init.d/weston
fi
install -D -p -m0644 ${WORKDIR}/weston.ini ${D}${sysconfdir}/xdg/weston/weston.ini
install -Dm644 ${WORKDIR}/weston.env ${D}${sysconfdir}/default/weston
diff --git a/meta/recipes-graphics/wayland/weston-init/init b/meta/recipes-graphics/wayland/weston-init/init
index d3e87c6cef..a849f29bcb 100644
--- a/meta/recipes-graphics/wayland/weston-init/init
+++ b/meta/recipes-graphics/wayland/weston-init/init
@@ -30,6 +30,7 @@ done
case "$1" in
start)
. /etc/profile
+ export HOME=ROOTHOME
weston-start -- $OPTARGS
;;
--
2.30.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [OE-core][PATCH] weston-init: Set $HOME variable for SysVinit manager. SysVinit sets by default the $HOME directory to "/" for the init scripts. It's picked then by the weston-launcher and make weston-terminal to have wrongly set $HOME environment variable for the root user.
2021-03-15 14:01 [OE-core][PATCH] weston-init: Set $HOME variable for SysVinit manager. SysVinit sets by default the $HOME directory to "/" for the init scripts. It's picked then by the weston-launcher and make weston-terminal to have wrongly set $HOME environment variable for the root user Adrian
@ 2021-03-15 15:06 ` Adrian
0 siblings, 0 replies; 2+ messages in thread
From: Adrian @ 2021-03-15 15:06 UTC (permalink / raw)
To: openembedded-core
This patch is wrongly formatted and should be ignored. I have already
sent a proper one.
Adrian
On 15.03.2021 15:01, Adrian Fiergolski wrote:
> Signed-off-by: Adrian Fiergolski <adrian.fiergolski@fastree3d.com>
> ---
> meta/recipes-graphics/wayland/weston-init.bb | 1 +
> meta/recipes-graphics/wayland/weston-init/init | 1 +
> 2 files changed, 2 insertions(+)
>
> diff --git a/meta/recipes-graphics/wayland/weston-init.bb b/meta/recipes-graphics/wayland/weston-init.bb
> index 65d7b81dc5..6b78e6722f 100644
> --- a/meta/recipes-graphics/wayland/weston-init.bb
> +++ b/meta/recipes-graphics/wayland/weston-init.bb
> @@ -30,6 +30,7 @@ DEFAULTBACKEND_x86-x32 = "fbdev"
> do_install() {
> if [ "${VIRTUAL-RUNTIME_init_manager}" != "systemd" ]; then
> install -Dm755 ${WORKDIR}/init ${D}/${sysconfdir}/init.d/weston
> + sed -i 's#ROOTHOME#${ROOT_HOME}#' ${D}/${sysconfdir}/init.d/weston
> fi
> install -D -p -m0644 ${WORKDIR}/weston.ini ${D}${sysconfdir}/xdg/weston/weston.ini
> install -Dm644 ${WORKDIR}/weston.env ${D}${sysconfdir}/default/weston
> diff --git a/meta/recipes-graphics/wayland/weston-init/init b/meta/recipes-graphics/wayland/weston-init/init
> index d3e87c6cef..a849f29bcb 100644
> --- a/meta/recipes-graphics/wayland/weston-init/init
> +++ b/meta/recipes-graphics/wayland/weston-init/init
> @@ -30,6 +30,7 @@ done
> case "$1" in
> start)
> . /etc/profile
> + export HOME=ROOTHOME
>
> weston-start -- $OPTARGS
> ;;
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-03-15 15:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-15 14:01 [OE-core][PATCH] weston-init: Set $HOME variable for SysVinit manager. SysVinit sets by default the $HOME directory to "/" for the init scripts. It's picked then by the weston-launcher and make weston-terminal to have wrongly set $HOME environment variable for the root user Adrian
2021-03-15 15:06 ` Adrian
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.