diff options
author | Jeremy Katz <katzj@redhat.com> | 2008-02-24 16:10:51 -0500 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2008-02-24 16:10:51 -0500 |
commit | 48eed37900218ea38c32eeb8ae094bef1e21724f (patch) | |
tree | c11a1d4241643880f16c814a3aa6a719200fd86a /isys | |
parent | 775f6de5ef1e4b6845d105ccf5b17885277c304f (diff) | |
download | anaconda-48eed37900218ea38c32eeb8ae094bef1e21724f.tar.gz anaconda-48eed37900218ea38c32eeb8ae094bef1e21724f.tar.xz anaconda-48eed37900218ea38c32eeb8ae094bef1e21724f.zip |
Add support for getting UUID using libblkid
Diffstat (limited to 'isys')
-rwxr-xr-x | isys/isys.py | 7 |
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 |