diff options
author | Hans de Goede <hans@localhost.localdomain> | 2008-09-15 10:51:05 +0200 |
---|---|---|
committer | Hans de Goede <hans@localhost.localdomain> | 2008-09-15 10:51:05 +0200 |
commit | 2193dc12c23a8858f32377194f6836064420a78f (patch) | |
tree | 29f672c3bd652231798fa4b92d8ac5501a9686ed /isys | |
parent | 57ef874e909a734e9dbd495d5726cefc7384695f (diff) | |
download | anaconda-2193dc12c23a8858f32377194f6836064420a78f.tar.gz anaconda-2193dc12c23a8858f32377194f6836064420a78f.tar.xz anaconda-2193dc12c23a8858f32377194f6836064420a78f.zip |
Fix iscsi disk detection with newer kernels (rh 461839, 461841)
On newer kernels the symlinks are arranged differently, causing driveIsIscsi
to fail to detect iscsi drives in current rawhide. This patch fixes this,
fixing rh 461839, rh 461841.
Diffstat (limited to 'isys')
-rwxr-xr-x | isys/isys.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/isys/isys.py b/isys/isys.py index 88a6987f0..8cec02aed 100755 --- a/isys/isys.py +++ b/isys/isys.py @@ -893,7 +893,7 @@ def driveIsIscsi(device): # ewww. just ewww. if not os.path.islink("/sys/block/%s/device" %(device,)): return False - target = os.readlink("/sys/block/%s/device" %(device,)) + target = os.path.realpath("/sys/block/%s/device" %(device,)) if re.search("/platform/host[0-9]*/session[0-9]*/target[0-9]*:[0-9]*:[0-9]*/[0-9]*:[0-9]*:[0-9]*:[0-9]*", target) is not None: return True return False |