2013-04-23 11:39:56 +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)
|
|
|
|
---
|
|
|
|
rules/60-persistent-storage.rules | 4 ++++
|
|
|
|
1 file changed, 4 insertions(+)
|
|
|
|
|
2013-08-02 07:26:48 +02:00
|
|
|
--- systemd-206.orig/rules/60-persistent-storage.rules
|
|
|
|
+++ systemd-206/rules/60-persistent-storage.rules
|
|
|
|
@@ -42,6 +42,10 @@ KERNEL=="cciss*", ENV{DEVTYPE}=="disk",
|
2012-11-02 17:30:32 +01: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"
|
|
|
|
+
|
|
|
|
# firewire
|
|
|
|
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"
|