]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libmount: (--all) continue although /proc is not mounted
authorKarel Zak <kzak@redhat.com>
Thu, 18 Nov 2021 10:47:08 +0000 (11:47 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 18 Nov 2021 12:07:59 +0000 (13:07 +0100)
commitb8f2fce2a20944cd8b1a7e91dfa04f9725ec3eb8
tree7826037a38456dbf96bd036bbd9302a592b8f5e2
parentaab112dd248a3e6fcbd8b18b35b3f97bd71a7bbf
libmount: (--all) continue although /proc is not mounted

Now 'mount --all' ends with error if /proc is not mounted and there is
some other entry before /proc in fstab. This commit improves this
situation and ignores all mount table related errors if the table is
empty.

This is important for situation when there is for example "/" as the
first line in fstab.

Addresses: https://github.com/util-linux/util-linux/issues/1492
Signed-off-by: Karel Zak <kzak@redhat.com>
libmount/src/context.c
libmount/src/context_mount.c
sys-utils/mount.8.adoc