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

ENV{DEVTYPE}=="disk", IMPORT{program}="@prefix@/bin/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{ID_ZPOOL}=="?*", SYMLINK+="$env{ID_ZPOOL_PATH}-part%n"