summaryrefslogtreecommitdiff
path: root/libpod/runtime_ctr.go
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@pm.me>2019-01-03 16:09:37 -0500
committerMatthew Heon <matthew.heon@pm.me>2019-01-04 09:51:09 -0500
commit97681a5f2b61da10a86c304bb026095c9bdb0169 (patch)
tree096695e1c74ccdc6c0c3e705fd25685619a3269b /libpod/runtime_ctr.go
parent01858c0eba1c8fc7a5ad176e224bec77e4851746 (diff)
downloadpodman-97681a5f2b61da10a86c304bb026095c9bdb0169.tar.gz
podman-97681a5f2b61da10a86c304bb026095c9bdb0169.tar.bz2
podman-97681a5f2b61da10a86c304bb026095c9bdb0169.zip
Move lock init after tmp dir is populated properly
Don't initialize the lock manager until almost the end of libpod init, so we can guarantee our tmp dir is properly set up and exists. This wasn't an issue on systems that had previously run Podman, but CI caught it. Signed-off-by: Matthew Heon <matthew.heon@pm.me>
Diffstat (limited to 'libpod/runtime_ctr.go')
-rw-r--r--libpod/runtime_ctr.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/libpod/runtime_ctr.go b/libpod/runtime_ctr.go
index 5b8a7f759..e6f2c962f 100644
--- a/libpod/runtime_ctr.go
+++ b/libpod/runtime_ctr.go
@@ -82,6 +82,7 @@ func (r *Runtime) newContainer(ctx context.Context, rSpec *spec.Spec, options ..
}
ctr.lock = lock
ctr.config.LockID = ctr.lock.ID()
+ logrus.Debugf("Allocated lock %d for container %s", ctr.lock.ID(), ctr.ID())
ctr.valid = true
ctr.state.State = ContainerStateConfigured