summaryrefslogtreecommitdiff
path: root/extras/edd_id/61-persistent-storage-edd.rules
blob: bd020b7172dff26a97fbd8de274142e64200f44a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# do not edit this file, it will be overwritten on update

ACTION!="add|change", GOTO="persistent_storage_edd_end"
SUBSYSTEM!="block", GOTO="persistent_storage_edd_end"
KERNEL!="sd*|hd*", GOTO="persistent_storage_edd_end"

# BIOS Enhanced Disk Device
ENV{DEVTYPE}=="disk", IMPORT{program}="edd_id --export $tempnode"
ENV{DEVTYPE}=="disk", ENV{ID_EDD}=="?*", SYMLINK+="disk/by-id/edd-$env{ID_EDD}"
ENV{DEVTYPE}=="partition", ENV{ID_EDD}=="?*", SYMLINK+="disk/by-id/edd-$env{ID_EDD}-part%n"

LABEL="persistent_storage_edd_end"