[umount] use lazy switch
in some rare cases you can't unmount your mountpoints. As it is the last step we can use lazy switch to force unmounting.
This commit is contained in:
parent
0a6053dd82
commit
eee54241d1
@ -49,7 +49,7 @@ def run():
|
|||||||
lst.sort(key=lambda x: x[1], reverse=True)
|
lst.sort(key=lambda x: x[1], reverse=True)
|
||||||
|
|
||||||
for device, mount_point in lst:
|
for device, mount_point in lst:
|
||||||
subprocess.check_call(["umount", mount_point])
|
subprocess.check_call(["umount", "-lv", mount_point])
|
||||||
|
|
||||||
os.rmdir(root_mount_point)
|
os.rmdir(root_mount_point)
|
||||||
return None
|
return None
|
||||||
|
Loading…
Reference in New Issue
Block a user