mirror of
https://github.com/troglobit/finit.git
synced 2026-10-07 00:00:23 +07:00
Add 27 stock rules installed to /lib/udev/rules.d/. Rules invoking /lib/udev/<helper> fall back to keventd builtins (path_id, usb_id, blkid, hwdb, kmod, net_id, input_id) when the helper binary is absent; user-supplied helpers in /lib/udev/ still take precedence. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
18 lines
841 B
Plaintext
18 lines
841 B
Plaintext
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
# Derived from eudev 3.2.14 rules/60-block.rules
|
|
# Modifications by the Finit project: none
|
|
#
|
|
# do not edit this file, it will be overwritten on update
|
|
|
|
# enable in-kernel media-presence polling
|
|
ACTION=="add", SUBSYSTEM=="module", KERNEL=="block", ATTR{parameters/events_dfl_poll_msecs}=="0", \
|
|
ATTR{parameters/events_dfl_poll_msecs}="2000"
|
|
|
|
# forward scsi device event to corresponding block device
|
|
ACTION=="change", SUBSYSTEM=="scsi", ENV{DEVTYPE}=="scsi_device", TEST=="block", ATTR{block/*/uevent}="change"
|
|
|
|
# watch metadata changes, caused by tools closing the device node which was opened for writing
|
|
ACTION!="remove", SUBSYSTEM=="block", \
|
|
KERNEL=="loop*|mmcblk*[0-9]|msblk*[0-9]|mspblk*[0-9]|nvme*|sd*|vd*|xvd*|bcache*|cciss*|dasd*|ubd*|ubi*|scm*|pmem*|nbd*|zd*", \
|
|
OPTIONS+="watch"
|