blob 67480e5215d8a8260ce3f03c67f71ba8f210c291 596 bytes (raw)
name: host/rootfs/image/usr/bin/vm-start # note: path name is non-authoritative(*)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
| | #!/bin/execlineb -S1
# SPDX-License-Identifier: EUPL-1.2+
# SPDX-FileCopyrightText: 2022-2023, 2025 Alyssa Ross <hi@alyssa.is>
foreground { s6-rc -bu change vm-env }
foreground {
redirfd -w 2 /dev/null
cd /run/vm/by-id/${1}/config/providers/net
elglob -0 providers *
forx -pE provider { $providers }
backtick -E provider_id {
backtick -E id_path { readlink /run/vm/by-name/${provider} }
basename -- $id_path
}
vm-start $provider_id
}
foreground {
redirfd -w 2 /dev/null
s6-svwait -U /run/service/vmm/instance/${1}
}
ch-remote --api-socket /run/vm/by-id/${1}/vmm boot
|
debug log:
solving 67480e5215d8a8260ce3f03c67f71ba8f210c291 ...
found 67480e5215d8a8260ce3f03c67f71ba8f210c291 in https://spectrum-os.org/git/spectrum
(*) Git path names are given by the tree(s) the blob belongs to.
Blobs themselves have no identifier aside from the hash of its contents.^
Code repositories for project(s) associated with this public inbox
https://spectrum-os.org/git/doc
https://spectrum-os.org/git/mktuntap
https://spectrum-os.org/git/spectrum
https://spectrum-os.org/git/ucspi-vsock
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).