summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulian Wiedmann <jwi@linux.ibm.com>2021-11-26 14:24:30 +0100
committerDan Horák <dan@danny.cz>2021-11-26 15:18:52 +0100
commit02124d9b50c1a3e9884c0f87f7d679d2f68a7c63 (patch)
treefbbcd619ac1157a3ee651a414b4e4a3174ac95dc
parent021da99823c738ff46b554f1526c35b5fc5577dd (diff)
downloadutils-master.tar.gz
utils-master.tar.xz
utils-master.zip
ccw.udev: tolerate synthetic ADD and CHANGE ueventsHEADmaster
Process ADD and CHANGE uevents as prior to the blamed commit. These can be injected from userspace, and the ADD uevent is important for devices that get enumerated during early boot (ie. prior to rootfs being mounted). udev later cold-plugs them into the system via synthetic ADD uevents (see systemd-udev-trigger.service) to trigger the rule processing. As we're not getting synthetic BIND uevents for such devices, matching on the ADD uevents is needed to get networking set up for eg. initramfs-less systems. Note that we're still restricting the matching to devices with the expected DRIVER attribute. Fixes: 4b1fc32788a3 ("ccw.udev: match BIND uevent for ccw network devices") Reported-by: Sven Schnelle <svens@linux.ibm.com> Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com> Tested-by: Sven Schnelle <svens@linux.ibm.com>
-rw-r--r--ccw.udev2
1 files changed, 1 insertions, 1 deletions
diff --git a/ccw.udev b/ccw.udev
index 8ef72db..c5db932 100644
--- a/ccw.udev
+++ b/ccw.udev
@@ -1,4 +1,4 @@
-ACTION!="bind", GOTO="ccw_end"
+ACTION!="add|bind|change", GOTO="ccw_end"
SUBSYSTEM!="ccw", GOTO="ccw_end"
DRIVER=="ctcm|lcs|qeth", RUN+="ccw_init"
LABEL="ccw_end"