Signed-off-by: Demi Marie Obenour <demiobenour@gmail.com> --- host/rootfs/file-list.mk | 3 ++- host/rootfs/image/etc/s6-rc/weston/finish | 1 + host/rootfs/image/etc/s6-rc/weston/run | 9 +++++++-- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/host/rootfs/file-list.mk b/host/rootfs/file-list.mk index 28866876e7a936e92f97e87b5108f6ad50b0005a..65fd1cf5071f9eba2d989d802f7641e74816816e 100644 --- a/host/rootfs/file-list.mk +++ b/host/rootfs/file-list.mk @@ -120,4 +120,5 @@ S6_RC_FILES = \ image/etc/s6-rc/weston/type S6_RC_LINKS = \ - image/etc/s6-rc/systemd-udevd/finish + image/etc/s6-rc/systemd-udevd/finish \ + image/etc/s6-rc/weston/finish diff --git a/host/rootfs/image/etc/s6-rc/weston/finish b/host/rootfs/image/etc/s6-rc/weston/finish new file mode 120000 index 0000000000000000000000000000000000000000..9e39002e3ae4063bdef05676efb55416020cf7aa --- /dev/null +++ b/host/rootfs/image/etc/s6-rc/weston/finish @@ -0,0 +1 @@ +/usr/bin/cgroup-setup \ No newline at end of file diff --git a/host/rootfs/image/etc/s6-rc/weston/run b/host/rootfs/image/etc/s6-rc/weston/run old mode 100644 new mode 100755 index 8b065ee9a535d0a08e9255900c73b88a0c376d4b..a306d9903da6da920efa55eccdfb4f3d14698a79 --- a/host/rootfs/image/etc/s6-rc/weston/run +++ b/host/rootfs/image/etc/s6-rc/weston/run @@ -1,8 +1,13 @@ -#!/bin/execlineb -WP +#!/bin/execlineb -Wp # SPDX-License-Identifier: EUPL-1.2+ # SPDX-FileCopyrightText: 2021, 2025 Alyssa Ross <hi@alyssa.is> -importas -Siu WAYLAND_DISPLAY +multisubstitute { + importas -Siu WAYLAND_DISPLAY + importas -Si 1 +} + +cgroup-setup --leaf --no-wait -- $1 piperw 4 3 background { -- 2.55.0