]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libmount: make mnt_context_is_fs_mounted work for /proc
authorIvan Delalande <colona@arista.com>
Fri, 7 Jul 2017 01:27:11 +0000 (18:27 -0700)
committerKarel Zak <kzak@redhat.com>
Tue, 18 Jul 2017 07:46:10 +0000 (09:46 +0200)
commit4e3afcac37bf500039130f6864cb5a02ba7a09c1
tree725af46408026ee104d586c4b51c79a345204b12
parent23fec903f436aac52f78101d77a5000b399aaa73
libmount: make mnt_context_is_fs_mounted work for /proc

Assume that /proc is not mounted instead of returning an error when we
are unable to open the mounts and mountinfo files in /proc. Also set
cxt->mtab back to NULL so that it gets properly parsed when we check if
the next filesystem is mounted.

The goal is to have mount -a work when /proc is not mounted, typically
with /proc on the first line of fstab.

Signed-off-by: Ivan Delalande <colona@arista.com>
libmount/src/context.c