mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 08:03:01 +09:00
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>
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
SUBSYSTEM!="block", SUBSYSTEMS!="usb", GOTO="lklfuse_end"
|
SUBSYSTEM!="block", GOTO="lklfuse_end"
|
||||||
|
ENV{ID_BUS}!="usb", GOTO="lklfuse_end"
|
||||||
#TAG+="lklfuse-dbg-block-filter"
|
#TAG+="lklfuse-dbg-block-filter"
|
||||||
# XXX remove should be handled by systemd service ConditionPathExists for %k
|
# XXX remove should be handled by systemd service ConditionPathExists for %k
|
||||||
# device node, but it doesn't appear to work, so manually stop.
|
# device node, but it doesn't appear to work, so manually stop.
|
||||||
|
|||||||
Reference in New Issue
Block a user