diff options
Diffstat (limited to 'host/rootfs/usr/bin/vm-start')
-rwxr-xr-x | host/rootfs/usr/bin/vm-start | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/host/rootfs/usr/bin/vm-start b/host/rootfs/usr/bin/vm-start index 46668eb..effc65d 100755 --- a/host/rootfs/usr/bin/vm-start +++ b/host/rootfs/usr/bin/vm-start @@ -1,6 +1,15 @@ #!/bin/execlineb -S1 # SPDX-License-Identifier: EUPL-1.2+ -# SPDX-FileCopyrightText: 2022 Alyssa Ross <hi@alyssa.is> +# SPDX-FileCopyrightText: 2022-2023 Alyssa Ross <hi@alyssa.is> foreground { s6-rc -bu change ext-rc } -s6-rc -l /run/s6-rc.ext -u change vm-${1} + +foreground { + redirfd -w 2 /dev/null + cd /ext/svc/data/${1}/providers/net + elglob -0 providers * + forx -pE provider { $providers } + vm-start $provider +} + +ch-remote --api-socket /run/service/ext-vm-${1}/env/cloud-hypervisor.sock boot |