summaryrefslogtreecommitdiffstats
path: root/udev/rules.d/60-zpool.rules.in
blob: 32fceed116da9346a1abf412f0b7a1bc1ce8f291 (plain)
1
2
3
4
5
6
7
8
9
#
# /lib/udev/rules.d/60-zpool.rules
#

ENV{DEVTYPE}=="disk", IMPORT{program}="@udevdir@/zpool_id -d %p"

KERNEL=="*[!0-9]", ENV{SUBSYSTEM}=="block", ENV{ID_ZPOOL}=="?*", SYMLINK+="$env{ID_ZPOOL_PATH}"
KERNEL=="*[0-9]", ENV{SUBSYSTEM}=="block", ENV{DEVTYPE}=="partition", ENV{ID_ZPOOL}=="?*", SYMLINK+="$env{ID_ZPOOL_PATH}-part%n"
KERNEL=="dm-[0-9]*", ENV{SUBSYSTEM}=="block", ENV{ID_ZPOOL}=="?*", SYMLINK+="$env{ID_ZPOOL_PATH}"