diff --git a/src/core/main.c b/src/core/main.c index f4acdb02c6..cab8e00941 100644 --- a/src/core/main.c +++ b/src/core/main.c @@ -3311,8 +3311,9 @@ int main(int argc, char *argv[]) { goto finish; } + /* Building without libmount is allowed, but if it is compiled in, then we must be able to load it */ r = dlopen_libmount(); - if (r < 0) { + if (r < 0 && !ERRNO_IS_NEG_NOT_SUPPORTED(r)) { error_message = "Failed to load libmount.so"; goto finish; }