summaryrefslogtreecommitdiffstats
path: root/isys/isys.py
diff options
context:
space:
mode:
Diffstat (limited to 'isys/isys.py')
-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