2013-08-02 07:26:48 +02:00
|
|
|
--- systemd-206.orig/Makefile.am
|
|
|
|
+++ systemd-206/Makefile.am
|
|
|
|
@@ -2484,6 +2484,10 @@ dist_udevrules_DATA += \
|
2013-07-02 12:29:43 +02:00
|
|
|
rules/80-hotplug-cpu-mem.rules
|
|
|
|
|
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
+dist_udevrules_DATA += \
|
|
|
|
+ rules/61-msft.rules
|
|
|
|
+
|
|
|
|
+# ------------------------------------------------------------------------------
|
|
|
|
if ENABLE_GUDEV
|
|
|
|
if ENABLE_GTK_DOC
|
|
|
|
SUBDIRS += \
|
|
|
|
--- /dev/null
|
2013-08-02 07:26:48 +02:00
|
|
|
+++ systemd-206/rules/61-msft.rules
|
2013-07-02 12:29:43 +02:00
|
|
|
@@ -0,0 +1,9 @@
|
|
|
|
+# MSFT compability rules
|
|
|
|
+ACTION!="add|change", GOTO="msft_end"
|
|
|
|
+
|
|
|
|
+ENV{DEVTYPE}=="partition", IMPORT{parent}="SCSI_IDENT_*"
|
|
|
|
+KERNEL=="sd*[!0-9]|sr*", ENV{SCSI_IDENT_LUN_T10}!="?*", IMPORT{program}="/usr/bin/sg_inq -p di --export $tempnode"
|
|
|
|
+KERNEL=="sd*|sr*", ENV{DEVTYPE}=="disk", ENV{SCSI_IDENT_LUN_T10}=="?*", SYMLINK+="disk/by-id/scsi-1$env{SCSI_IDENT_LUN_T10}"
|
|
|
|
+KERNEL=="sd*", ENV{DEVTYPE}=="partition", ENV{SCSI_IDENT_LUN_T10}=="?*", SYMLINK+="disk/by-id/scsi-1$env{SCSI_IDENT_LUN_T10}-part%n"
|
|
|
|
+
|
|
|
|
+LABEL="msft_end"
|