blob 98eae108e884513bdcedaa741170bfaec2ed495f 650 bytes (raw)
name: vm/app/nix/bin/vm-rebuild # 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
| | #!/bin/execlineb -S1
# SPDX-License-Identifier: EUPL-1.2+
# SPDX-FileCopyrightText: 2022 Alyssa Ross <hi@alyssa.is>
if -n {
if -n { test $# -eq 1 -a $1 = switch }
fdmove -c 1 2
echo "Usage: ${0} switch"
}
cd /run/virtiofs/virtiofs0
backtick -E dir { mktemp -d }
foreground {
if { nix-build -o ${dir}/system <spectrum-vms> }
if { nix-env -p nix/var/nix/profiles/vms --set ${dir}/system }
backtick -E vmsdir { resolve_in_root . nix/var/nix/profiles/vms }
cd $vmsdir
elglob -0 glob *
forx -E vm { $glob }
ln -s /nix/var/nix/profiles/vms/${vm} /run/virtiofs/virtiofs0/svc/data
}
importas -iu ? ?
background { rm -rf $dir }
exit $?
|
debug log:
solving 98eae10 ...
found 98eae10 in https://inbox.spectrum-os.org/spectrum-devel/20221010232909.1953738-20-hi@alyssa.is/
applying [1/1] https://inbox.spectrum-os.org/spectrum-devel/20221010232909.1953738-20-hi@alyssa.is/
diff --git a/vm/app/nix/bin/vm-rebuild b/vm/app/nix/bin/vm-rebuild
new file mode 100755
index 0000000..98eae10
Checking patch vm/app/nix/bin/vm-rebuild...
Applied patch vm/app/nix/bin/vm-rebuild cleanly.
index at:
100755 98eae108e884513bdcedaa741170bfaec2ed495f vm/app/nix/bin/vm-rebuild
(*) 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).