Since we can't enable use of ignoring autofs mounts that have the "ignore" option present by default (systemd could get confused) it's necessary to enable it for individual applications. The mount utility is one applcation we need it for so enable it. Signed-off-by: Ian Kent <raven@xxxxxxxxxx> Cc: John Westerdale <jwesterd@xxxxxxxxxx> Cc: Frank Hertz <fhirtz@xxxxxxxxxx> Cc: Frank Sorenson <fsorenso@xxxxxxxxxx> --- sys-utils/mount.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys-utils/mount.c b/sys-utils/mount.c index 6590272c7..dba6fcae9 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_noautofs(cxt, 1); + if (mnt_context_get_mtab(cxt, &tb)) err(MNT_EX_SYSERR, _("failed to read mtab"));