Update udev rules file
[blkdevalias.git] / 99-blkdevalias.rules
1 KERNEL=="sd*[^0-9]" ENV{DEVTYPE}=="disk" \
2     PROGRAM="/sbin/scsi_id -g -u -d$tempnode" \
3     IMPORT="/sbin/wwidmap map %c" \
4     SYMLINK+="$env{WM_NAME}" OWNER="$env{WM_USER}" GROUP="$env{WM_GROUP}"
5
6 KERNEL=="sd*[1-9]*" ENV{DEVTYPE}=="partition" \
7     PROGRAM="/sbin/scsi_id -g -u -d/dev/$parent" \
8     IMPORT="/sbin/wwidmap map %c" \
9     SYMLINK+="$env{WM_NAME}" OWNER="$env{WM_USER}" GROUP="$env{WM_GROUP}" \
10     OPTIONS+={link_priority=5}
11
12 KERNEL=="dm*" ENV{DM_UUID}=="mpath*" \
13     PROGRAM="/sbin/scsi_id -g -u -d$tempnode" \
14     IMPORT="/sbin/wwidmap map %c" \
15     SYMLINK+="$env{WM_NAME}" OWNER="$env{WM_USER}" GROUP="$env{WM_GROUP}" \
16     OPTIONS+="link_priority=10"
17
18 KERNEL=="dm*" ENV{DM_UUID}=="part*mpath*" \
19     PROGRAM="/sbin/scsi_id -g -u -d/dev/$parent" \
20     IMPORT="/sbin/wwidmap map %c" \
21     SYMLINK+="$env{WM_NAME}" OWNER="$env{WM_USER}" GROUP="$env{WM_GROUP}" \
22     OPTIONS+="link_priority=15"