patches and low-level development discussion
 help / color / mirror / code / Atom feed
2ab3f03b83d4be1b669fd06c021af24a1fd219dc blob 1038 bytes (raw)

 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
 
# SPDX-License-Identifier: EUPL-1.2+
# SPDX-FileCopyrightText: 2021-2022 Alyssa Ross <hi@alyssa.is>
# SPDX-FileCopyrightText: 2022 Unikie

if { mkdir -p /run/s6-rc.ext.src }

if {
  elglob -0 dirs /ext/svc/data/*/
  forx -E dir { $dirs }
  backtick -E name { basename -- $dir }

  cd /run/s6-rc.ext.src

  if { mkdir -- ${name} ${name}/dependencies.d ${name}/env }
  if { redirfd -w 1 ${name}/type echo longrun }
  if { redirfd -w 1 ${name}/notification-fd echo 3 }
  if { ln -s -- /bin/start-vm ${name}/run }

  if {
    if -t { test -e ${dir}/wayland }
    if { cp -R /etc/template/gpu /run/s6-rc.ext.src/${name}-gpu }
    if { mkdir /run/s6-rc.ext.src/${name}-gpu/env }
    touch /run/s6-rc.ext.src/${name}/dependencies.d/${name}-gpu
  }

  elglob -0 paths /ext/svc/data/${name}/providers/net/*
  forx -pE path { $paths }
  backtick -E dep { basename -- $path }
  touch -- ${name}/dependencies.d/${dep}
}

if { s6-rc-compile /run/s6-rc.ext.db /run/s6-rc.ext.src }
s6-rc-init -c /run/s6-rc.ext.db -l /run/s6-rc.ext -p ext- /run/service
debug log:

solving 2ab3f03 ...
found 2ab3f03 in https://spectrum-os.org/lists/archives/spectrum-devel/20220930124940.1013577-9-alyssa.ross@unikie.com/ ||
	https://spectrum-os.org/lists/archives/spectrum-devel/20220930213533.1710618-9-alyssa.ross@unikie.com/
found 1aec7fb in https://spectrum-os.org/git/spectrum
preparing index
index prepared:
100644 1aec7fb0b830929cfa1ce58b7120381b7bb9f3d2	host/rootfs/etc/s6-rc/ext-rc-init/up

applying [1/2] https://spectrum-os.org/lists/archives/spectrum-devel/20220930124940.1013577-9-alyssa.ross@unikie.com/
diff --git a/host/rootfs/etc/s6-rc/ext-rc-init/up b/host/rootfs/etc/s6-rc/ext-rc-init/up
index 1aec7fb..2ab3f03 100644

Checking patch host/rootfs/etc/s6-rc/ext-rc-init/up...
Applied patch host/rootfs/etc/s6-rc/ext-rc-init/up cleanly.

skipping https://spectrum-os.org/lists/archives/spectrum-devel/20220930213533.1710618-9-alyssa.ross@unikie.com/ for 2ab3f03
index at:
100644 2ab3f03b83d4be1b669fd06c021af24a1fd219dc	host/rootfs/etc/s6-rc/ext-rc-init/up

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).