]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libmount: add --enable-libmount-force-mountinfo
authorKarel Zak <kzak@redhat.com>
Mon, 16 Feb 2015 11:49:49 +0000 (12:49 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 16 Feb 2015 11:49:49 +0000 (12:49 +0100)
commite3f72275ca2fa65b51f8183af925a5541eed8a7a
treedbfe8f5897acd554fe8560183f535b36aa21276a
parent440b529693abe3efef9bf67888d63b39aa4c5713
libmount: add --enable-libmount-force-mountinfo

The default libmount mtab management depends on mtan symlink. If the
symlink exists than libmount parses /proc/self/mountinfo, otherwise it
parses regular classic /etc/mtab. This is backwardly compatible and
transparent solution.

Unfortunately, this is not robust enough because some broken init
scripts or 3-party mount helpers may remove the symlink and create
regular mtab file. This is pretty bad if initd (systemd) depends on
libmount.

Fortunately we known that mtab is absolutely unwanted on some distros,
so it's fine too ignore mtab at all and don't care about the symlink.

Reported-by: Martin Pitt <martin.pitt@ubuntu.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
configure.ac
libmount/src/context.c
libmount/src/tab_parse.c