5392bf0c44
- Cleanup NumLock setting code (handle-numlock-value-in-etc-sysconfig-keyboard.patch). (forwarded request 178889 from sbrabec) OBS-URL: https://build.opensuse.org/request/show/178890 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/systemd?expand=0&rev=143
30 lines
1.2 KiB
Diff
30 lines
1.2 KiB
Diff
Index: systemd-204/Makefile.am
|
|
===================================================================
|
|
--- systemd-204.orig/Makefile.am
|
|
+++ systemd-204/Makefile.am
|
|
@@ -2238,6 +2238,10 @@ dist_udevrules_DATA += \
|
|
rules/73-seat-numlock.rules
|
|
|
|
# ------------------------------------------------------------------------------
|
|
+dist_udevrules_DATA += \
|
|
+ rules/61-msft.rules
|
|
+
|
|
+# ------------------------------------------------------------------------------
|
|
if ENABLE_GUDEV
|
|
if ENABLE_GTK_DOC
|
|
SUBDIRS += \
|
|
Index: systemd-204/rules/61-msft.rules
|
|
===================================================================
|
|
--- /dev/null
|
|
+++ systemd-204/rules/61-msft.rules
|
|
@@ -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", ENV{ID_BUS}="scsi"
|
|
+KERNEL=="sd*|sr*", ENV{DEVTYPE}=="disk", ENV{SCSI_IDENT_LUN_T10}=="?*", SYMLINK+="disk/by-id/$env{ID_BUS}-1$env{SCSI_IDENT_LUN_T10}"
|
|
+KERNEL=="sd*", ENV{DEVTYPE}=="partition", ENV{SCSI_IDENT_LUN_T10}=="?*", SYMLINK+="disk/by-id/$env{ID_BUS}-1$env{SCSI_IDENT_LUN_T10}-part%n"
|
|
+
|
|
+LABEL="msft_end"
|