mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 08:03:01 +09:00
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>
20 lines
825 B
Plaintext
20 lines
825 B
Plaintext
SUBSYSTEM!="block", GOTO="lklfuse_end"
|
|
ENV{ID_BUS}!="usb", GOTO="lklfuse_end"
|
|
#TAG+="lklfuse-dbg-block-filter"
|
|
# XXX remove should be handled by systemd service ConditionPathExists for %k
|
|
# device node, but it doesn't appear to work, so manually stop.
|
|
ACTION=="remove", TAG+="lklfuse-dbg-got-remove", \
|
|
RUN+="/usr/bin/systemctl stop lklfuse-mount@%k", GOTO="lklfuse_end"
|
|
#TAG+="lklfuse-dbg-remove-filter"
|
|
|
|
# only support a subset of filesystems on USB devices for now. Btrfs omitted
|
|
# from the default set, as lklfuse lacks multi-device support.
|
|
ENV{ID_FS_TYPE}!="vfat|exfat|iso9660|udf|xfs|ext4|ext3|ext2", GOTO="lklfuse_end"
|
|
#TAG+="lklfuse-dbg-fs-filter"
|
|
|
|
ACTION=="add", TAG+="systemd", \
|
|
OWNER="lklfuse", GROUP="lklfuse", ENV{UDISKS_IGNORE}="1", \
|
|
ENV{SYSTEMD_WANTS}+="lklfuse-mount@%k.service"
|
|
|
|
LABEL="lklfuse_end"
|