Skip to content

Commit

Permalink
Fix mount race condition
Browse files Browse the repository at this point in the history
  • Loading branch information
colml committed Jun 3, 2016
1 parent c588952 commit 9134f76
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rtslib/utils.py
Expand Up @@ -440,7 +440,8 @@ def mount_configfs():
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
(stdoutdata, stderrdata) = process.communicate()
if process.returncode != 0:
if process.returncode != 0 and not os.path.ismount(
"/sys/kernel/config"):
raise RTSLibError("Cannot mount configfs")

def dict_remove(d, items):
Expand Down

0 comments on commit 9134f76

Please sign in to comment.