From eee54241d1f58839f9d2dc8a64a1a556ff5f70b3 Mon Sep 17 00:00:00 2001 From: Manjaro Linux Date: Fri, 28 Nov 2014 22:32:38 +0100 Subject: [PATCH] [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. --- src/modules/umount/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/umount/main.py b/src/modules/umount/main.py index 3a9063137..c013e29df 100644 --- a/src/modules/umount/main.py +++ b/src/modules/umount/main.py @@ -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