Skip to contentSkip to conversation

Add fc_id to rules for devices it may handle.

PATCH New Peter Jones 1 participant 1 message Jul 21, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Add fc_id to rules for devices it may handle.

This makes it so that we'll actually get fc_id's ID_PORT_NAME and ID_LUN variables set by default.

---
 rules/rules.d/60-persistent-storage.rules |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
rules/rules.d/60-persistent-storage.rules +1 -0
index 64e9578..89fbc5c 100644
@@ -35,6 +35,7 @@ KERNEL="sd*[!0-9]|sr*", ENV{ID_SERIAL}!="?*", SUBSYSTEMS="ata", IMPORT{program
 KERNEL="sd*[!0-9]|sr*", ENV{ID_SERIAL}!="?*", SUBSYSTEMS="scsi", ATTRS{vendor}="ATA", IMPORT{program}="ata_id --export $tempnode"
 # scsi devices
 KERNEL="sd*[!0-9]|sr*", ENV{ID_SERIAL}!="?*", IMPORT{program}="scsi_id --export --whitelisted -d $tempnode", ENV{ID_BUS}="scsi"
+KERNEL="sd*|cciss*", ENV{DEVTYPE}="disk", IMPORT{program}="fc_id %p"
 KERNEL="cciss*", ENV{DEVTYPE}="disk", ENV{ID_SERIAL}!="?*", IMPORT{program}="scsi_id --export --whitelisted -d $tempnode", ENV{ID_BUS}="cciss"
 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"
Signature · 1 line
1.6.2.2