summaryrefslogtreecommitdiff
path: root/extras/edd_id/61-persistent-storage-edd.rules
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2007-08-14 11:06:39 +0200
committerKay Sievers <kay.sievers@vrfy.org>2007-08-14 11:06:39 +0200
commit88b74dc69226ff64e5ab7a80077f331729202083 (patch)
tree8cb87fd5615863e43c5389017c74a77dd86cac0d /extras/edd_id/61-persistent-storage-edd.rules
parentb1a2b83f2da105c0b98fd9636477ca7632986243 (diff)
edd_id: move persistent rules to its own file
Diffstat (limited to 'extras/edd_id/61-persistent-storage-edd.rules')
-rw-r--r--extras/edd_id/61-persistent-storage-edd.rules10
1 files changed, 10 insertions, 0 deletions
diff --git a/extras/edd_id/61-persistent-storage-edd.rules b/extras/edd_id/61-persistent-storage-edd.rules
new file mode 100644
index 0000000000..aed60db493
--- /dev/null
+++ b/extras/edd_id/61-persistent-storage-edd.rules
@@ -0,0 +1,10 @@
+# do not edit this file, it will be overwritten on update
+
+ACTION!="add", 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"