naccyde / rpms / systemd

Forked from rpms/systemd a year ago
Clone
84b277
From 5d050e50b2028d3b29f2ecd7a6e5fe0ab543c1df Mon Sep 17 00:00:00 2001
84b277
From: Lukas Nykryn <lnykryn@redhat.com>
84b277
Date: Mon, 28 Jul 2014 16:31:32 +0200
84b277
Subject: [PATCH] rules/60-persistent-storage: add nvme pcie ssd scsi_id ENV
84b277
84b277
Resolves: #1042990
84b277
---
84b277
 rules/60-persistent-storage.rules | 3 +++
84b277
 1 file changed, 3 insertions(+)
84b277
84b277
diff --git a/rules/60-persistent-storage.rules b/rules/60-persistent-storage.rules
84b277
index a4d009a..c47c130 100644
84b277
--- a/rules/60-persistent-storage.rules
84b277
+++ b/rules/60-persistent-storage.rules
84b277
@@ -42,6 +42,9 @@ KERNEL=="cciss*", ENV{DEVTYPE}=="disk", ENV{ID_SERIAL}!="?*", IMPORT{program}="s
84b277
 KERNEL=="sd*|sr*|cciss*", ENV{DEVTYPE}=="disk", ENV{ID_SERIAL}=="?*", SYMLINK+="disk/by-id/$env{ID_BUS}-$env{ID_SERIAL}"
84b277
 KERNEL=="sd*|cciss*", ENV{DEVTYPE}=="partition", ENV{ID_SERIAL}=="?*", SYMLINK+="disk/by-id/$env{ID_BUS}-$env{ID_SERIAL}-part%n"
84b277
 
84b277
+# NVMe
84b277
+KERNEL=="nvme*", ENV{ID_SERIAL}!="?*", IMPORT{program}="scsi_id --export --whitelisted -d $tempnode"
84b277
+
84b277
 # firewire
84b277
 KERNEL=="sd*[!0-9]|sr*", ATTRS{ieee1394_id}=="?*", SYMLINK+="disk/by-id/ieee1394-$attr{ieee1394_id}"
84b277
 KERNEL=="sd*[0-9]", ATTRS{ieee1394_id}=="?*", SYMLINK+="disk/by-id/ieee1394-$attr{ieee1394_id}-part%n"