]> 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:45:26 +0000 (09:45 +0200)
commitb9a5e23fa8c0a1b04b7794bfde3885f83a38fdcd
tree94af1b28009211c95b5aa28a04f2750a4d242cfa
parente0a88864a7119ff80820357c2031528868392d28
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