Newer glib2 versions require this:
checking for libmount/libmount.h... yes
checking for mnt_unref_table in -lmount... no
configure: error: *** Could not find libmount
Nice, I have doubts I want to rebase libmount.
Maybe we can make some changes in glib2 code to make it compatible with the old libmount. The old version does not use reference counting, but free()-like functions. I can help with it. Where is the glib2 code?
BTW, libmount/src diffstat between rhel7.5 and the current upstream:
23 files changed, 5573 insertions(+), 1848 deletions(-)
glib code is https://git.gnome.org/browse/glib/ (hasn't changed in probably > 10 years 😉)
OK, something like what we did for ostree:
OK that was easy https://bugzilla.gnome.org/show_bug.cgi?id=789767