[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:
Manjaro Linux 2014-11-28 22:32:38 +01:00
parent 0a6053dd82
commit eee54241d1

View File

@ -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