Use vm-service-run for this. Signed-off-by: Demi Marie Obenour <demiobenour@gmail.com> --- host/rootfs/file-list.mk | 1 + .../vm-services/template/data/service/vhost-user-gpu/finish | 1 + .../service/vm-services/template/data/service/vhost-user-gpu/run | 9 +++------ 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/host/rootfs/file-list.mk b/host/rootfs/file-list.mk index 31a536c5174c20e8a566b36471372fd97e579bd1..15e92bd32887beb547fc88d431c36b09b220c3ad 100644 --- a/host/rootfs/file-list.mk +++ b/host/rootfs/file-list.mk @@ -80,6 +80,7 @@ LINKS = \ image/etc/s6-linux-init/run-image/service/serial-getty-generator/finish \ image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/dbus/finish \ image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/vhost-user-fs/finish \ + image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/vhost-user-gpu/finish \ image/etc/s6-linux-init/run-image/service/vm-services/template/finish \ image/etc/s6-linux-init/run-image/service/vmm/template/run \ image/lib \ diff --git a/host/rootfs/image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/vhost-user-gpu/finish b/host/rootfs/image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/vhost-user-gpu/finish new file mode 120000 index 0000000000000000000000000000000000000000..9e39002e3ae4063bdef05676efb55416020cf7aa --- /dev/null +++ b/host/rootfs/image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/vhost-user-gpu/finish @@ -0,0 +1 @@ +/usr/bin/cgroup-setup \ No newline at end of file diff --git a/host/rootfs/image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/vhost-user-gpu/run b/host/rootfs/image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/vhost-user-gpu/run index c3bfafe02ec6d2ee418fe56b033bbc4c7a73b186..49978bf9e4e600198cd3f8704c33229518a8fa60 100755 --- a/host/rootfs/image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/vhost-user-gpu/run +++ b/host/rootfs/image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/vhost-user-gpu/run @@ -1,14 +1,11 @@ -#!/bin/execlineb -WP +#!/bin/execlineb -Wp # SPDX-License-Identifier: EUPL-1.2+ # SPDX-FileCopyrightText: 2025 Alyssa Ross <hi@alyssa.is> # SPDX-FileCopyrightText: 2025 Demi Marie Obenour <demiobenour@gmail.com> -s6-ipcserver-socketbinder -a 0700 -b 1 env/crosvm.sock +vm-service-run -multisubstitute { - importas -Siu VM - importas -Si WAYLAND_DISPLAY -} +s6-ipcserver-socketbinder -a 0700 -b 1 env/crosvm.sock if { chown vmm-${VM} env/crosvm.sock } -- 2.55.0