From ba6f1acf07d1eddcd810cdb4265a8961770329c6 Mon Sep 17 00:00:00 2001 From: Matthew Heon Date: Mon, 25 Feb 2019 15:37:20 -0500 Subject: Record when volume path is explicitly set in config This ensures we won't overwrite it when it's set in the config we load from disk. Signed-off-by: Matthew Heon --- libpod/runtime.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libpod') diff --git a/libpod/runtime.go b/libpod/runtime.go index eb9eb9e83..827c22f5b 100644 --- a/libpod/runtime.go +++ b/libpod/runtime.go @@ -405,6 +405,9 @@ func NewRuntime(options ...RuntimeOption) (runtime *Runtime, err error) { if tmpConfig.TmpDir != "" { runtime.configuredFrom.libpodTmpDirSet = true } + if tmpConfig.VolumePath != "" { + runtime.configuredFrom.volPathSet = true + } if _, err := toml.Decode(string(contents), runtime.config); err != nil { return nil, errors.Wrapf(err, "error decoding configuration file %s", configPath) -- cgit v1.2.3-54-g00ecf