-
Notifications
You must be signed in to change notification settings - Fork 6
/
90-vpdupdate.rules
36 lines (30 loc) · 1.29 KB
/
90-vpdupdate.rules
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
DEVPATH!="/devices/*", GOTO="vpd_end"
# See SysFSTreeCollector::filterDevicePath()
DEVPATH=="/devices/virtual/*", GOTO="vpd_end"
DEVPATH=="/devices/system/*", GOTO="vpd_end"
DEVPATH=="/devices/cpu/*", GOTO="vpd_end"
DEVPATH=="/devices/breakpoint/*", GOTO="vpd_end"
DEVPATH=="/devices/tracepoint/*", GOTO="vpd_end"
DEVPATH=="/devices/software/*", GOTO="vpd_end"
# See SysFSTreeCollector::filterDevice()
ENV{DEVTYPE}=="scsi_target", GOTO="vpd_end"
SUBSYSTEM=="enclosure", GOTO="vpd_end"
# See SysFSTreeCollector::isDevice()
ENV{DEVTYPE}=="partition", GOTO="vpd_end"
# More devices that aren't covered by VPD
DEVPATH=="/devices/uprobe/*", GOTO="vpd_end"
DEVPATH=="/devices/kprobe/*", GOTO="vpd_end"
DEVPATH=="/devices/rbd/*", GOTO="vpd_end"
SUBSYSTEM=="scsi_device", GOTO="vpd_update"
SUBSYSTEM=="scsi_host", GOTO="vpd_update"
# Don't generate extra events, we have one for the scsi_device already
# This rule also skips SCSI block device uevents
# (but the corresponding scsi_device will have triggered vpdupdate).
SUBSYSTEMS=="scsi*", GOTO="vpd_end"
# virtual NVMe devices (NVMeoF) are skipped because of the rule above
SUBSYSTEM=="nvme", GOTO="vpd_update"
SUBSYSTEM=="nvme-subsystem", GOTO="vpd_update"
SUBSYSTEMS=="nvme*", GOTO="vpd_end"
LABEL="vpd_update"
RUN+="/bin/touch /run/run.vpdupdate"
LABEL="vpd_end"