summaryrefslogtreecommitdiff
path: root/extras/volume_id/s390-dasd.rules
diff options
context:
space:
mode:
Diffstat (limited to 'extras/volume_id/s390-dasd.rules')
-rw-r--r--extras/volume_id/s390-dasd.rules7
1 files changed, 7 insertions, 0 deletions
diff --git a/extras/volume_id/s390-dasd.rules b/extras/volume_id/s390-dasd.rules
new file mode 100644
index 0000000000..a870d87e04
--- /dev/null
+++ b/extras/volume_id/s390-dasd.rules
@@ -0,0 +1,7 @@
+# s390 block devices named by disk label
+KERNEL="dasd*[a-z]", PROGRAM="/sbin/udev_volume_id -d -l" RESULT="[0-9A-Z]*", SYMLINK="dasd/%c/disc dasd/%b/disc"
+KERNEL="dasd*[0-9]", PROGRAM="/sbin/udev_volume_id -d -l" RESULT="[0-9A-Z]*", SYMLINK="dasd/%c/part%n dasd/%b/part%n"
+KERNEL="dasd*[a-z]", SYMLINK="dasd/%b/disc"
+KERNEL="dasd*[0-9]", SYMLINK="dasd/%b/part%n"
+KERNEL="dcssblk*", NAME="%k", SYMLINK="dcssblk/%b"
+