summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xisys/isys.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/isys/isys.py b/isys/isys.py
index 5136a773b..e5d191659 100755
--- a/isys/isys.py
+++ b/isys/isys.py
@@ -736,14 +736,14 @@ def dhcpNetDevice(device):
return _isys.dhcpnetdevice(devname, v4, v4method, v6, v6method, klass)
def readFSLabel(device):
- if not device.startswith("/dev/"):
+ if not os.path.exists(device):
device = "/dev/%s" % device
label = _isys.getblkid(device, "LABEL")
return label
def readFSType(device):
- if not device.startswith("/dev/"):
+ if not os.path.exists(device):
device = "/dev/%s" % device
fstype = _isys.getblkid(device, "TYPE")