Use the vm-service-run script. Signed-off-by: Demi Marie Obenour <demiobenour@gmail.com> --- host/rootfs/file-list.mk | 1 + .../service/vm-services/template/data/service/vhost-user-fs/finish | 1 + .../service/vm-services/template/data/service/vhost-user-fs/run | 5 +++-- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/host/rootfs/file-list.mk b/host/rootfs/file-list.mk index 96960f7e58bef0ed081f4b2ef060765e412a871f..31a536c5174c20e8a566b36471372fd97e579bd1 100644 --- a/host/rootfs/file-list.mk +++ b/host/rootfs/file-list.mk @@ -79,6 +79,7 @@ LINKS = \ image/etc/s6-linux-init/run-image/opengl-driver \ 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/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-fs/finish b/host/rootfs/image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/vhost-user-fs/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-fs/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-fs/run b/host/rootfs/image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/vhost-user-fs/run index cb059aebc8dfe2c8a5b059d5bfea884de53bf922..66aeef5d1bd7399c9969e38ce1a9ad32f4ba56b8 100755 --- a/host/rootfs/image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/vhost-user-fs/run +++ b/host/rootfs/image/etc/s6-linux-init/run-image/service/vm-services/template/data/service/vhost-user-fs/run @@ -1,10 +1,11 @@ -#!/bin/execlineb -WS1 +#!/bin/execlineb -Wp # SPDX-License-Identifier: EUPL-1.2+ # SPDX-FileCopyrightText: 2021-2025 Alyssa Ross <hi@alyssa.is> +vm-service-run + s6-ipcserver-socketbinder -a 0700 -B env/virtiofsd.sock -importas -i VM VM if { chown vmm-${VM} env/virtiofsd.sock } if { fdmove 1 3 echo } -- 2.55.0