From: Karel Zak Date: Wed, 5 Apr 2023 10:00:11 +0000 (+0200) Subject: findmnt: use warning rather than error from FS type mismatch X-Git-Tag: v2.39-rc3~44 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6d9c74af8862487440f44491ad06fb3885abf8c8;p=thirdparty%2Futil-linux.git findmnt: use warning rather than error from FS type mismatch Fixes: https://github.com/util-linux/util-linux/issues/2148 Signed-off-by: Karel Zak --- diff --git a/misc-utils/findmnt-verify.c b/misc-utils/findmnt-verify.c index d9a59c1a16..3543c36e24 100644 --- a/misc-utils/findmnt-verify.c +++ b/misc-utils/findmnt-verify.c @@ -464,11 +464,11 @@ static int verify_fstype(struct verify_context *vfy) || strcmp(realtype, "btrfs") == 0; if (type && !isauto && strcmp(type, realtype) != 0) { - verify_err(vfy, _("%s does not match with on-disk %s"), type, realtype); + verify_warn(vfy, _("%s does not match with on-disk %s"), type, realtype); goto done; } if (!isswap && !is_supported_filesystem(vfy, realtype)) { - verify_err(vfy, _("on-disk %s seems unsupported by the current kernel"), realtype); + verify_warn(vfy, _("on-disk %s seems unsupported by the current kernel"), realtype); goto done; }