aboutsummaryrefslogtreecommitdiff
path: root/rules
diff options
context:
space:
mode:
authorKeith Busch <keith.busch@intel.com>2017-02-17 00:46:06 -0700
committerMartin Pitt <martinpitt@users.noreply.github.com>2017-02-17 08:46:06 +0100
commit5c1be4f73082d09011661516c39fb53626d8bdc7 (patch)
treed5d5986982a7953d2f3dab3c3a93497727231721 /rules
parentvirt: Update cache if the detected vm is virtualbox (#5364) (diff)
downloadsystemd-5c1be4f73082d09011661516c39fb53626d8bdc7.tar.gz
systemd-5c1be4f73082d09011661516c39fb53626d8bdc7.tar.bz2
systemd-5c1be4f73082d09011661516c39fb53626d8bdc7.zip
Export NVMe WWID udev attribute (#5348)
We need this for multipath support without relying on NVMe to SCSI translations. Signed-off-by: Keith Busch <keith.busch@intel.com>
Diffstat (limited to 'rules')
-rw-r--r--rules/60-persistent-storage.rules1
1 files changed, 1 insertions, 0 deletions
diff --git a/rules/60-persistent-storage.rules b/rules/60-persistent-storage.rules
index 28e41ea96..4a33ad813 100644
--- a/rules/60-persistent-storage.rules
+++ b/rules/60-persistent-storage.rules
@@ -20,6 +20,7 @@ KERNEL=="nvme*[0-9]n*[0-9]", ATTR{wwid}=="?*", SYMLINK+="disk/by-id/nvme-$attr{w
KERNEL=="nvme*[0-9]n*[0-9]p*[0-9]", ENV{DEVTYPE}=="partition", ATTRS{wwid}=="?*", SYMLINK+="disk/by-id/nvme-$attr{wwid}-part%n"
KERNEL=="nvme*[0-9]n*[0-9]", ENV{DEVTYPE}=="disk", ATTRS{serial}=="?*", ENV{ID_SERIAL_SHORT}="$attr{serial}"
+KERNEL=="nvme*[0-9]n*[0-9]", ENV{DEVTYPE}=="disk", ATTRS{wwid}=="?*", ENV{ID_WWN}="$attr{wwid}"
KERNEL=="nvme*[0-9]n*[0-9]", ENV{DEVTYPE}=="disk", ATTRS{model}=="?*", ENV{ID_SERIAL_SHORT}=="?*", ENV{ID_SERIAL}="$attr{model}_$env{ID_SERIAL_SHORT}", SYMLINK+="disk/by-id/nvme-$env{ID_SERIAL}"
KERNEL=="nvme*[0-9]n*[0-9]p*[0-9]", ENV{DEVTYPE}=="partition", ATTRS{serial}=="?*", ENV{ID_SERIAL_SHORT}="$attr{serial}"