From c36df2f04523a38b2edda2445a899bc63d79448d Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Wed, 28 Apr 2021 08:46:50 -0400 Subject: [PATCH] Log expected rootless overlay mount failures as debug level Most linux kernels do not support overlay mounts in rootless mode, we should not be reporting this as an error, but drop it to debug level. Fixes: https://github.com/containers/podman/issues/10153 Signed-off-by: Daniel J Walsh --- drivers/overlay/overlay.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/overlay/overlay.go b/drivers/overlay/overlay.go index 26f4b0a552..60eb047bd3 100644 --- a/drivers/overlay/overlay.go +++ b/drivers/overlay/overlay.go @@ -620,7 +620,7 @@ func supportsOverlay(home string, homeMagic graphdriver.FsMagic, rootUID, rootGI if len(flags) < unix.Getpagesize() { err := unix.Mount("overlay", mergedDir, "overlay", 0, flags) if err == nil { - logrus.Errorf("overlay test mount with multiple lowers failed, but succeeded with a single lower") + logrus.StandardLogger().Logf(logLevel, "overlay test mount with multiple lowers failed, but succeeded with a single lower") return supportsDType, errors.Wrap(graphdriver.ErrNotSupported, "kernel too old to provide multiple lowers feature for overlay") } logrus.Debugf("overlay test mount with a single lower failed %v", err)