diff options
author | Jeremy Katz <katzj@redhat.com> | 2008-02-07 16:27:17 -0500 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2008-02-07 16:27:17 -0500 |
commit | 8948d8fa93c7cfe90f5576cb71390f421f62e7c8 (patch) | |
tree | 14486d15cf55846442f6508c22eabeaca7426031 /isys/isys.py | |
parent | ded73d8bc4eace67ae7dbeb7001c76f26344a6a1 (diff) | |
download | anaconda-8948d8fa93c7cfe90f5576cb71390f421f62e7c8.tar.gz anaconda-8948d8fa93c7cfe90f5576cb71390f421f62e7c8.tar.xz anaconda-8948d8fa93c7cfe90f5576cb71390f421f62e7c8.zip |
Check for device existence rather than starting with /dev
Diffstat (limited to 'isys/isys.py')
-rwxr-xr-x | isys/isys.py | 4 |
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") |