diff options
author | Matthew Heon <mheon@redhat.com> | 2018-12-02 15:32:06 -0500 |
---|---|---|
committer | Matthew Heon <mheon@redhat.com> | 2018-12-02 15:32:06 -0500 |
commit | 03229239b018b611b5f0307dc0d11bb0fb15c1ae (patch) | |
tree | 9742d62cfd4c962602a1e7744af74eb12efa77b1 /libpod/runtime.go | |
parent | 562fa57dc9f497db772baa03bfa052082db68646 (diff) | |
download | podman-03229239b018b611b5f0307dc0d11bb0fb15c1ae.tar.gz podman-03229239b018b611b5f0307dc0d11bb0fb15c1ae.tar.bz2 podman-03229239b018b611b5f0307dc0d11bb0fb15c1ae.zip |
Do not initialize locks dir in BoltDB
We already create the locks directory as part of the libpod
runtime's init - no need to do it again as part of BoltDB's init.
Signed-off-by: Matthew Heon <mheon@redhat.com>
Diffstat (limited to 'libpod/runtime.go')
-rw-r--r-- | libpod/runtime.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libpod/runtime.go b/libpod/runtime.go index 6a5d2ad39..9afa1bc10 100644 --- a/libpod/runtime.go +++ b/libpod/runtime.go @@ -285,6 +285,7 @@ func NewRuntime(options ...RuntimeOption) (runtime *Runtime, err error) { return nil, errors.Wrapf(err, "error retrieving rootless storage config") } runtime.config.StorageConfig = storageConf + runtime.config.StaticDir = filepath.Join(storageConf.GraphRoot, "libpod") } configPath := ConfigPath @@ -516,6 +517,12 @@ func makeRuntime(runtime *Runtime) (err error) { runtime.config.TmpDir = dbConfig.LibpodTmp } + logrus.Debugf("Using graph driver %s", runtime.config.StorageConfig.GraphDriverName) + logrus.Debugf("Using graph root %s", runtime.config.StorageConfig.GraphRoot) + logrus.Debugf("Using run root %s", runtime.config.StorageConfig.RunRoot) + logrus.Debugf("Using static dir %s", runtime.config.StaticDir) + logrus.Debugf("Using tmp dir %s", runtime.config.TmpDir) + // Validate our config against the database, now that we've set our // final storage configuration if err := runtime.state.ValidateDBConfig(runtime); err != nil { |