From 02124d9b50c1a3e9884c0f87f7d679d2f68a7c63 Mon Sep 17 00:00:00 2001 From: Julian Wiedmann Date: Fri, 26 Nov 2021 14:24:30 +0100 Subject: ccw.udev: tolerate synthetic ADD and CHANGE uevents 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 Signed-off-by: Julian Wiedmann Tested-by: Sven Schnelle --- ccw.udev | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" -- cgit