mirror of
https://git.yoctoproject.org/poky
synced 2026-05-05 07:39:49 +02:00
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. (From OE-Core rev: f5ddf5533b19a41be9e9cd403c2e7ded6da6f272) Signed-off-by: Adrian Fiergolski <adrian.fiergolski@fastree3d.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -30,6 +30,7 @@ done
|
||||
case "$1" in
|
||||
start)
|
||||
. /etc/profile
|
||||
export HOME=ROOTHOME
|
||||
|
||||
weston-start -- $OPTARGS
|
||||
;;
|
||||
|
||||
Reference in New Issue
Block a user