blob c1938df01189c26f6c7ffd4c0010fabdc5fb3405 1098 bytes (raw)
name: host/rootfs/image/usr/bin/run-update # 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
45
46
47
48
49
50
51
52
53
54
| | #!/bin/execlineb -S1
# SPDX-License-Identifier: EUPL-1.2+
# SPDX-FileCopyrightText: 2024 Alyssa Ross <hi@alyssa.is>
backtick -E dir { mktemp -d /run/vm/by-id/XXXXXX }
backtick -E id { basename -- $dir }
if { mkdir -p /run/configs/${id}/fs }
if { redirfd -w 1 /run/configs/${id}/fs/type echo appimage }
if { touch /run/configs/${id}/fs/run }
if { mount --rbind $1 /run/configs/${id}/fs/run }
if {
ln -s /usr/lib/spectrum/img/appvm/blk /usr/lib/spectrum/img/appvm/vmlinux
/run/configs/${id}
}
if { ln -s /run/configs/${id} ${dir}/config }
if { create-vm-dependencies $id }
piperw 4 3
background {
fdclose 3
fdmove 0 4
# Wait for the VMM to be up, then start the VM.
if { redirfd -w 1 /dev/null head -1 }
vm-start $id
}
fdclose 4
foreground { run-vmm $id }
fdclose 3
if {
forx -pE service {
dbus
vhost-user-fs
vhost-user-gpu
xdg-desktop-portal-spectrum-host
}
s6-instance-delete /run/service/${service} $id
}
if {
forx -E mount {
/run/configs/${id}/fs/run
${dir}/fs/config
${dir}/fs/doc
}
umount $mount
}
rm -r $dir /run/configs/${id}
|
debug log:
solving c1938df01189c26f6c7ffd4c0010fabdc5fb3405 ...
found c1938df01189c26f6c7ffd4c0010fabdc5fb3405 in https://inbox.spectrum-os.org/spectrum-devel/20251029-updates-v1-7-401c1be2a11b@gmail.com/
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/run-update b/host/rootfs/image/usr/bin/run-update
new file mode 100644
index 0000000000000000000000000000000000000000..c1938df01189c26f6c7ffd4c0010fabdc5fb3405
Checking patch host/rootfs/image/usr/bin/run-update...
Applied patch host/rootfs/image/usr/bin/run-update cleanly.
index at:
100644 c1938df01189c26f6c7ffd4c0010fabdc5fb3405 host/rootfs/image/usr/bin/run-update
(*) 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/crosvm
https://spectrum-os.org/git/doc
https://spectrum-os.org/git/mktuntap
https://spectrum-os.org/git/nixpkgs
https://spectrum-os.org/git/spectrum
https://spectrum-os.org/git/ucspi-vsock
https://spectrum-os.org/git/www
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).