FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Device-mapper Development

 
 
LinkBack Thread Tools
 
Old 02-03-2010, 06:36 PM
Chris Lumens
 
Default Add ID_SERIAL in as a backup in case there's no ID_SERIAL_SHORT.

---
storage/udev.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/storage/udev.py b/storage/udev.py
index 7ed7cc4..4bef451 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
--
1.6.5.1

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 11:22 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org