[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.
main
Manjaro Linux 10 years ago
parent 0a6053dd82
commit eee54241d1

@ -49,7 +49,7 @@ def run():
lst.sort(key=lambda x: x[1], reverse=True)
for device, mount_point in lst:
subprocess.check_call(["umount", mount_point])
subprocess.check_call(["umount", "-lv", mount_point])
os.rmdir(root_mount_point)
return None

Loading…
Cancel
Save