summaryrefslogtreecommitdiffstats
path: root/misc-utils/lsblk-properties.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc-utils/lsblk-properties.c')
-rw-r--r--misc-utils/lsblk-properties.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/misc-utils/lsblk-properties.c b/misc-utils/lsblk-properties.c
index 30168dd48..530332fec 100644
--- a/misc-utils/lsblk-properties.c
+++ b/misc-utils/lsblk-properties.c
@@ -96,8 +96,12 @@ static struct lsblk_devprop *get_properties_by_udev(struct lsblk_device *ld)
if (data)
prop->wwn = xstrdup(data);
- if ((data = udev_device_get_property_value(dev, "ID_SERIAL_SHORT")))
+ data = udev_device_get_property_value(dev, "ID_SCSI_SERIAL");
+ if(!data)
+ data = udev_device_get_property_value(dev, "ID_SERIAL_SHORT");
+ if (data)
prop->serial = xstrdup(data);
+
if ((data = udev_device_get_property_value(dev, "ID_MODEL")))
prop->model = xstrdup(data);