diff options
author | Matt Wilson <msw@redhat.com> | 2001-04-04 19:15:05 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 2001-04-04 19:15:05 +0000 |
commit | e49dfca2b4f1f1c78ff9787743928722a96a8869 (patch) | |
tree | 4f09652a7752a994130a0142697fbf7cffac57c3 /isys | |
parent | 7fc07f2032ab0085a3f481a2f9fb124d68108b3c (diff) | |
download | anaconda-e49dfca2b4f1f1c78ff9787743928722a96a8869.tar.gz anaconda-e49dfca2b4f1f1c78ff9787743928722a96a8869.tar.xz anaconda-e49dfca2b4f1f1c78ff9787743928722a96a8869.zip |
fix the raidstop command in rescue mode/Alt+F2
Diffstat (limited to 'isys')
-rw-r--r-- | isys/isys.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/isys/isys.py b/isys/isys.py index 627b07231..f76276352 100644 --- a/isys/isys.py +++ b/isys/isys.py @@ -25,10 +25,11 @@ def fsSpaceAvailable(fsystem): return _isys.devSpaceFree(fsystem) def raidstop(mdDevice): - if raidCount[mdDevice] > 1: - raidCount[mdDevice] = raidCount[mdDevice] - 1 - return - del raidCount[mdDevice] + if raidCount.has_key (mdDevice): + if raidCount[mdDevice] > 1: + raidCount[mdDevice] = raidCount[mdDevice] - 1 + return + del raidCount[mdDevice] makeDevInode(mdDevice, "/tmp/md") fd = os.open("/tmp/md", os.O_RDONLY) |