patches and low-level development discussion
 help / color / mirror / code / Atom feed
blob c65829419de3516d6ec8e95e7928a69c308507aa 568 bytes (raw)
name: host/rootfs/image/etc/udev/rules.d/99-spectrum.rules 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
 
# SPDX-License-Identifier: EUPL-1.2+
# SPDX-FileCopyrightText: 2025 Demi Marie Obenour <demiobenour@gmail.com>

# systemd-udevd unsets PATH, so fix that.
ACTION=="remove", GOTO="spectrum-end"
ENV{PCI_CLASS}!="2????", GOTO="spectrum-end"

# net-add unbinds and rebinds the driver, so avoid calling
# it more than once.
IMPORT{db}="SPECTRUM_DRIVER_ASSIGNED"
ENV{SPECTRUM_DRIVER_ASSIGNED}=="yes", GOTO="spectrum-end"
# systemd-udevd unsets PATH, so fix that.
RUN+="/usr/bin/env PATH=/usr/bin /usr/libexec/net-add"
ENV{SPECTRUM_DRIVER_ASSIGNED}="yes"
LABEL="spectrum-end"

debug log:

solving c65829419de3516d6ec8e95e7928a69c308507aa ...
found c65829419de3516d6ec8e95e7928a69c308507aa in https://inbox.spectrum-os.org/spectrum-devel/20251003-udev-v4-2-7d7344b14d11@gmail.com/

applying [1/1] https://inbox.spectrum-os.org/spectrum-devel/20251003-udev-v4-2-7d7344b14d11@gmail.com/
diff --git a/host/rootfs/image/etc/udev/rules.d/99-spectrum.rules b/host/rootfs/image/etc/udev/rules.d/99-spectrum.rules
new file mode 100644
index 0000000000000000000000000000000000000000..c65829419de3516d6ec8e95e7928a69c308507aa

Checking patch host/rootfs/image/etc/udev/rules.d/99-spectrum.rules...
Applied patch host/rootfs/image/etc/udev/rules.d/99-spectrum.rules cleanly.

index at:
100644 c65829419de3516d6ec8e95e7928a69c308507aa	host/rootfs/image/etc/udev/rules.d/99-spectrum.rules

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