|
@@ -10,7 +10,7 @@ def jail_run(path, command): |
|
|
try:
|
|
|
try:
|
|
|
res = subprocess.run(command)
|
|
|
res = subprocess.run(command)
|
|
|
finally:
|
|
|
finally:
|
|
|
subprocess.run(['umount', os.path.join(path, 'dev')])
|
|
|
|
|
|
|
|
|
subprocess.run(['umount', '-f', os.path.join(path, 'dev')])
|
|
|
if res.returncode != 0:
|
|
|
if res.returncode != 0:
|
|
|
# subprocess.run(['umount', os.path.join(path, 'dev')])
|
|
|
# subprocess.run(['umount', os.path.join(path, 'dev')])
|
|
|
raise RuntimeError('Command failed')
|
|
|
raise RuntimeError('Command failed')
|
|
|