summaryrefslogtreecommitdiffstats
path: root/isys
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2008-02-24 16:10:51 -0500
committerJeremy Katz <katzj@redhat.com>2008-02-24 16:10:51 -0500
commit48eed37900218ea38c32eeb8ae094bef1e21724f (patch)
treec11a1d4241643880f16c814a3aa6a719200fd86a /isys
parent775f6de5ef1e4b6845d105ccf5b17885277c304f (diff)
downloadanaconda-48eed37900218ea38c32eeb8ae094bef1e21724f.tar.gz
anaconda-48eed37900218ea38c32eeb8ae094bef1e21724f.tar.xz
anaconda-48eed37900218ea38c32eeb8ae094bef1e21724f.zip
Add support for getting UUID using libblkid
Diffstat (limited to 'isys')
-rwxr-xr-xisys/isys.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/isys/isys.py b/isys/isys.py
index 2dcd1f8ee..8a125834b 100755
--- a/isys/isys.py
+++ b/isys/isys.py
@@ -747,6 +747,13 @@ def dhcpNetDevice(device):
return _isys.dhcpnetdevice(devname, v4, v4method, v6, v6method, klass)
+def readFSUuid(device):
+ if not os.path.exists(device):
+ device = "/dev/%s" % device
+
+ label = _isys.getblkid(device, "UUID")
+ return label
+
def readFSLabel(device):
if not os.path.exists(device):
device = "/dev/%s" % device