Use the autofs mount option hint to ignore autofs mount table entries. Signed-off-by: Ian Kent <raven@xxxxxxxxxx> --- sys-utils/mount.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys-utils/mount.c b/sys-utils/mount.c index 283998f3b..29fda6b05 100644 --- a/sys-utils/mount.c +++ b/sys-utils/mount.c @@ -124,6 +124,8 @@ static void print_all(struct libmnt_context *cxt, char *pattern, int show_label) struct libmnt_fs *fs; struct libmnt_cache *cache = NULL; + mnt_context_enable_ignore_autofs(cxt); + if (mnt_context_get_mtab(cxt, &tb)) err(MNT_EX_SYSERR, _("failed to read mtab"));