Skip to content

Commit 6cd4156

Browse files
committed
lkl: systemd: fix udev rule to properly filter for USB devs
The previous filter accepted non-usb block devices, which resulted in unexpected EFI partition mounts. Split the filter and check for ENV{ID_BUS}!="usb". Tested on systemd-udevd 254 and 257 systems. Signed-off-by: David Disseldorp <ddiss@suse.de> (cherry picked from commit 101d4a4d0fdd6fe6203831b917ce74bbb7a77fe0) Link: lkl/linux#617
1 parent 4262d0f commit 6cd4156

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

tools/lkl/systemd/61-lklfuse.rules

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
SUBSYSTEM!="block", SUBSYSTEMS!="usb", GOTO="lklfuse_end"
1+
SUBSYSTEM!="block", GOTO="lklfuse_end"
2+
ENV{ID_BUS}!="usb", GOTO="lklfuse_end"
23
#TAG+="lklfuse-dbg-block-filter"
34
# XXX remove should be handled by systemd service ConditionPathExists for %k
45
# device node, but it doesn't appear to work, so manually stop.

0 commit comments

Comments
 (0)