def umount(mount_point, read_only=True, recursive=False, force=True, remove_dir=True, raise_exception=True):
    flags = []
    if read_only:
        flags.append('-r')
    if force:
        flags.append('-f')
    if recursive:
        flags.append('-R')
    run_command_or_raise(['umount', *flags, mount_point], raise_exception=raise_exception)
    if remove_dir:
        run_command_or_raise(['rm', '-rf', mount_point], raise_exception=raise_exception)
def umount(mount_point, read_only=True, recursive=False, force=True, remove_dir=True, raise_exception=True):
    flags = []
    if read_only:
        flags.append('-r')
    if force:
        flags.append('-f')
    if recursive:
        flags.append('-R')
    run_command_or_raise(['umount', *flags, mount_point], raise_exception=raise_exception)
    if remove_dir:
        run_command_or_raise(['rm', '-rf', mount_point], raise_exception=raise_exception)