blob ffaff7e5a7cb47b9aedcebca84a62634bd5256e3 1119 bytes (raw)
name: host/rootfs/image/usr/bin/vm-import # 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
| | #!/bin/execlineb -WS2
# SPDX-License-Identifier: EUPL-1.2+
# SPDX-FileCopyrightText: 2023-2024 Alyssa Ross <hi@alyssa.is>
cd $2
elglob -w0 names *
forx -po0 -E name { $names }
backtick -E id {
backtick -E dir { mktemp -d /run/vm/by-id/XXXXXX }
basename -- $dir
}
if { useradd -P /run -Urd / -s /bin/nologin gpu-${id} }
if { useradd -P /run -Urd / -s /bin/nologin -G tty,vmm vmm-${id} }
if { useradd -P /run -Urd / -s /bin/nologin xdp-spectrum-${id} }
if { mkdir /run/vsock/${id} }
if { chown vmm-${id} /run/vm/by-id/${id} /run/vsock/${id} }
if { ln -s -- /run/vm/by-id/${id} /run/vm/by-name/${1}.${name} }
if { ln -s -- ${2}/${name} /run/vm/by-id/${id}/config }
if { ln -s -- /run/service/vmm/instance/${id} /run/vm/by-id/${id}/service }
if { create-vm-dependencies $id }
if {
case $# {
3 {
s6-envuidgid fs
s6-applyuidgid -Uzu 0
nsenter --preserve-credentials -S0
--mount=/run/vm/by-id/${id}/ns/mnt
--user=/run/vm/by-id/${id}/ns/user
if { mkdir -p -- ${3}/${name} }
mount --bind -- ${3}/${name} /run/fs/${id}/disk
}
}
}
s6-instance-create -- /run/service/vmm $id
|
debug log:
solving ffaff7e5a7cb47b9aedcebca84a62634bd5256e3 ...
found ffaff7e5a7cb47b9aedcebca84a62634bd5256e3 in https://inbox.spectrum-os.org/spectrum-devel/20260711-cgroups-v3-22-5cba61a20cba@gmail.com/
found ade1ee86527813b171e458961fadb5fb936e358d in https://spectrum-os.org/git/spectrum
preparing index
index prepared:
100755 ade1ee86527813b171e458961fadb5fb936e358d host/rootfs/image/usr/bin/vm-import
applying [1/1] https://inbox.spectrum-os.org/spectrum-devel/20260711-cgroups-v3-22-5cba61a20cba@gmail.com/
diff --git a/host/rootfs/image/usr/bin/vm-import b/host/rootfs/image/usr/bin/vm-import
index ade1ee86527813b171e458961fadb5fb936e358d..ffaff7e5a7cb47b9aedcebca84a62634bd5256e3 100755
Checking patch host/rootfs/image/usr/bin/vm-import...
Applied patch host/rootfs/image/usr/bin/vm-import cleanly.
index at:
100755 ffaff7e5a7cb47b9aedcebca84a62634bd5256e3 host/rootfs/image/usr/bin/vm-import
(*) 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).