summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--storage/udev.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/udev.py b/storage/udev.py
index 7ed7cc42d..4bef4513a 100644
--- a/storage/udev.py
+++ b/storage/udev.py
@@ -242,7 +242,7 @@ def udev_device_is_partition(info):
def udev_device_get_serial(udev_info):
""" Get the serial number/UUID from the device as reported by udev. """
- return udev_info.get("ID_SERIAL_SHORT")
+ return udev_info.get("ID_SERIAL_SHORT", udev_info.get("ID_SERIAL"))
def udev_device_get_wwid(udev_info):
""" The WWID of a device is typically just its serial number, but with