Fix unmounting error (#1940)

This commit is contained in:
Shirang Jia
2021-07-07 16:44:42 -07:00
committed by GitHub
parent 9ca7a698df
commit 55a3b41222
@@ -318,7 +318,7 @@ def unmount_volume():
f.write("""
select disk 1
offline disk
""")
""".encode('utf-8'))
f.close()
subprocess.call('diskpart /s %s' % f.name)
os.unlink(f.name)