summaryrefslogtreecommitdiffstats
path: root/storage
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2010-02-01 16:18:17 -0500
committerChris Lumens <clumens@redhat.com>2010-02-03 16:07:45 -0500
commit47c44d34c747016ad046a073f4c88f5b94c5b198 (patch)
treede246231c263cafbc6903e50b7e3120c3e2f3a37 /storage
parent54296bbc1e5597764ad7fc48b68e23612e4212d8 (diff)
downloadanaconda-47c44d34c747016ad046a073f4c88f5b94c5b198.tar.gz
anaconda-47c44d34c747016ad046a073f4c88f5b94c5b198.tar.xz
anaconda-47c44d34c747016ad046a073f4c88f5b94c5b198.zip
Add ID_SERIAL in as a backup in case there's no ID_SERIAL_SHORT.
Diffstat (limited to 'storage')
-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