]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libmount: dont ignore autofs mounts by default
authorIan Kent <raven@themaw.net>
Mon, 13 Mar 2023 01:42:56 +0000 (09:42 +0800)
committerKarel Zak <kzak@redhat.com>
Wed, 15 Mar 2023 14:26:43 +0000 (15:26 +0100)
commit7d08453551ccc5477f76f3e986c8351e8c5ab599
tree3b2d47f735e6f085e8ead7f5268c81ed368ab766
parent53de7fe79761c0d5b7b59384120f7fd8a18163b5
libmount: dont ignore autofs mounts by default

Making libmount ingore autofs mounts by default can be a problem for
systemd, I remember now what the problem was.

autofs multi-mounts can be nested (and often are, think of a tree of
NFS exports) where there are autofs file system mounts within NFS
mounts and together with autofs mount triggers.

In this case systemd needs to see all the mounts at shutdown when it
is umounting the tree of mounts. We don't want to have to rely on
modifications having been made to systemd for this to work properly
so we can't make this the default behaviour in libmount.

Fixes: 22147e08c987 (libmount: use autofs mount hint to ignore autofs mount entries)
Signed-off-by: Ian Kent <raven@themaw.net>
Cc: John Westerdale <jwesterd@redhat.com>
Cc: Frank Hertz <fhirtz@redhat.com>
Cc: Frank Sorenson <fsorenso@redhat.com>
libmount/src/context.c