2013-04-13 13:09:53 +02:00
|
|
|
From: Robert Milasan <rmilasan@suse.com>
|
|
|
|
Date: Wed, 27 Jun 2012 08:55:59 +0000
|
|
|
|
Subject: rules create by id scsi links for ATA devices
|
|
|
|
|
|
|
|
Re-enable creation of by-id scsi links for ATA devices. (bnc#769002)
|
|
|
|
---
|
2015-06-23 14:56:50 +02:00
|
|
|
rules/60-persistent-storage.rules | 4 ++++
|
2013-04-13 13:09:53 +02:00
|
|
|
1 file changed, 4 insertions(+)
|
|
|
|
|
2015-06-23 14:56:50 +02:00
|
|
|
Index: systemd-221/rules/60-persistent-storage.rules
|
|
|
|
===================================================================
|
|
|
|
--- systemd-221.orig/rules/60-persistent-storage.rules
|
|
|
|
+++ systemd-221/rules/60-persistent-storage.rules
|
|
|
|
@@ -36,6 +36,10 @@ KERNEL=="cciss*", ENV{DEVTYPE}=="disk",
|
2012-10-26 14:34:44 +02:00
|
|
|
KERNEL=="sd*|sr*|cciss*", ENV{DEVTYPE}=="disk", ENV{ID_SERIAL}=="?*", SYMLINK+="disk/by-id/$env{ID_BUS}-$env{ID_SERIAL}"
|
|
|
|
KERNEL=="sd*|cciss*", ENV{DEVTYPE}=="partition", ENV{ID_SERIAL}=="?*", SYMLINK+="disk/by-id/$env{ID_BUS}-$env{ID_SERIAL}-part%n"
|
|
|
|
|
|
|
|
+# scsi compat links for ATA devices
|
|
|
|
+KERNEL=="sd*[!0-9]", ENV{ID_BUS}=="ata", PROGRAM="scsi_id --whitelisted --replace-whitespace -p0x80 -d $devnode", RESULT=="?*", ENV{ID_SCSI_COMPAT}="$result", SYMLINK+="disk/by-id/scsi-$env{ID_SCSI_COMPAT}"
|
|
|
|
+KERNEL=="sd*[0-9]", ENV{ID_SCSI_COMPAT}=="?*", SYMLINK+="disk/by-id/scsi-$env{ID_SCSI_COMPAT}-part%n"
|
|
|
|
+
|
2015-06-23 14:56:50 +02:00
|
|
|
# FireWire
|
2012-10-26 14:34:44 +02:00
|
|
|
KERNEL=="sd*[!0-9]|sr*", ATTRS{ieee1394_id}=="?*", SYMLINK+="disk/by-id/ieee1394-$attr{ieee1394_id}"
|
|
|
|
KERNEL=="sd*[0-9]", ATTRS{ieee1394_id}=="?*", SYMLINK+="disk/by-id/ieee1394-$attr{ieee1394_id}-part%n"
|