blob 8ae8d94203345c4f3e8b6e46de0d139fda6c11d6 1144 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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
| | #!/bin/execlineb -Ws0
# SPDX-License-Identifier: EUPL-1.2+
# SPDX-FileCopyrightText: 2022-2023, 2025 Alyssa Ross <hi@alyssa.is>
# SPDX-FileCopyrightText: 2025 Demi Marie Obenour <demiobenour@gmail.com>
if {
case "${#}" {
1 { true }
2 {
multisubstitute {
define sourcedir ${2}
define fsdir /run/vm/by-id/${1}/fs/user
}
if { mkdir -p ${fsdir} }
foreground { redirfd -w 2 /dev/null umount ${fsdir} }
mount --bind -- ${sourcedir} ${fsdir}
}
}
foreground { fdmove -c 1 2 echo "Bad number of arguments ${#} (expected 1 or 3)" }
exit 100
}
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}
}
if { ch-remote --api-socket /run/vm/by-id/${1}/vmm boot }
case "${#}" {
2 { s6-svwait -D /run/service/vmm/instance/${1} }
}
|
debug log:
solving 8ae8d94203345c4f3e8b6e46de0d139fda6c11d6 ...
found 8ae8d94203345c4f3e8b6e46de0d139fda6c11d6 in https://inbox.spectrum-os.org/spectrum-devel/20251029-updates-v1-7-401c1be2a11b@gmail.com/
found 67480e5215d8a8260ce3f03c67f71ba8f210c291 in https://spectrum-os.org/git/spectrum
preparing index
index prepared:
100755 67480e5215d8a8260ce3f03c67f71ba8f210c291 host/rootfs/image/usr/bin/vm-start
applying [1/1] https://inbox.spectrum-os.org/spectrum-devel/20251029-updates-v1-7-401c1be2a11b@gmail.com/
diff --git a/host/rootfs/image/usr/bin/vm-start b/host/rootfs/image/usr/bin/vm-start
index 67480e5215d8a8260ce3f03c67f71ba8f210c291..8ae8d94203345c4f3e8b6e46de0d139fda6c11d6 100755
Checking patch host/rootfs/image/usr/bin/vm-start...
Applied patch host/rootfs/image/usr/bin/vm-start cleanly.
index at:
100755 8ae8d94203345c4f3e8b6e46de0d139fda6c11d6 host/rootfs/image/usr/bin/vm-start
(*) 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).