patches and low-level development discussion
 help / color / mirror / code / Atom feed
blob c555fb672556a1b249d020dfb3868a0d9c185554 559 bytes (raw)
name: host/rootfs/image/usr/bin/assign-driver-router-iface 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
 
#!/bin/execlineb -S1
# SPDX-License-Identifier: EUPL-1.2+
# SPDX-FileCopyrightText: 2025 Alyssa Ross <hi@alyssa.is>
# SPDX-FileCopyrightText: 2025 Yureka Lilian <yureka@cyberchaos.dev>

# This script is to be called once it is known that this VM is a driver VM
# (net provider) AND the vmm endpoint is ready.
# It add the interface between the router and the driver VM.
# Note: This script is designed to be re-entrant
redirfd -w 2 /dev/null
ch-remote --api-socket ${1}/vmm add-net id=router,vhost_user=on,socket=${1}/router-driver.sock,mac=02:01:00:00:00:01

debug log:

solving c555fb6 ...
found c555fb6 in https://inbox.spectrum-os.org/spectrum-devel/20251128223038.97536-6-yureka@cyberchaos.dev/

applying [1/1] https://inbox.spectrum-os.org/spectrum-devel/20251128223038.97536-6-yureka@cyberchaos.dev/
diff --git a/host/rootfs/image/usr/bin/assign-driver-router-iface b/host/rootfs/image/usr/bin/assign-driver-router-iface
new file mode 100755
index 0000000..c555fb6

Checking patch host/rootfs/image/usr/bin/assign-driver-router-iface...
Applied patch host/rootfs/image/usr/bin/assign-driver-router-iface cleanly.

index at:
100755 c555fb672556a1b249d020dfb3868a0d9c185554	host/rootfs/image/usr/bin/assign-driver-router-iface

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