def umount_filesystem(target_dir, lazy=False): """umount filesystem on target directory. """ if lazy: return mount.unmount(target=target_dir, mnt_flags=(mount.MNT_DETACH, )) else: return mount.unmount(target=target_dir)
def umount_filesystem(target_dir): """umount filesystem on target directory. """ return mount.unmount(target=target_dir)