From 91ebfe260a43e7e23adb9031c7f153ae34cb4bb5 Mon Sep 17 00:00:00 2001 From: Kir Kolyshkin Date: Thu, 3 May 2018 14:09:32 -0700 Subject: [PATCH] aufs: log reason why aufs is not supported. In case aufs driver is not supported because supportsAufs() said so, it is not possible to get a real reason from the logs. To fix, log the error returned. Note we're not using WithError here as the error message itself is the sole message we want to print (i.e. there's nothing to add to it). Signed-off-by: Kir Kolyshkin Upstream-commit: 91f85d1c784f3dc9d892b2af2f51d6b6f3b0be69 Component: engine --- components/engine/daemon/graphdriver/aufs/aufs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/engine/daemon/graphdriver/aufs/aufs.go b/components/engine/daemon/graphdriver/aufs/aufs.go index 5d1de2135d..9152252770 100644 --- a/components/engine/daemon/graphdriver/aufs/aufs.go +++ b/components/engine/daemon/graphdriver/aufs/aufs.go @@ -86,9 +86,9 @@ type Driver struct { // Init returns a new AUFS driver. // An error is returned if AUFS is not supported. func Init(root string, options []string, uidMaps, gidMaps []idtools.IDMap) (graphdriver.Driver, error) { - // Try to load the aufs kernel module if err := supportsAufs(); err != nil { + logger.Error(err) return nil, graphdriver.ErrNotSupported }