Fixed wk.os.linux.mount_volumes()

This commit is contained in:
2Shirt 2020-01-10 18:07:02 -07:00
parent a81e6f80e6
commit 7e69eff7a8
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C

View file

@ -138,9 +138,9 @@ def mount_volumes(device_path=None, read_write=False, scan_corestorage=False):
# Attempt to mount volume
if not already_mounted:
mount(vol.path, read_write=read_write)
proc = run_program(cmd, check=False)
if proc.returncode:
try:
mount(vol.path, read_write=read_write)
except RuntimeError:
result += 'Failed to mount'
report.append(std.color_string(result, 'RED'))
continue