mirror of
https://github.com/containers/podman.git
synced 2025-07-03 17:27:18 +08:00
Update c/storage after https://github.com/containers/storage/pull/1436
... and update to remove the now-deprecated Locker interface. Signed-off-by: Miloslav Trmač <mitr@redhat.com>
This commit is contained in:
@ -35,6 +35,7 @@ import (
|
||||
"github.com/containers/podman/v4/pkg/util"
|
||||
"github.com/containers/podman/v4/utils"
|
||||
"github.com/containers/storage"
|
||||
"github.com/containers/storage/pkg/lockfile"
|
||||
"github.com/containers/storage/pkg/unshare"
|
||||
"github.com/docker/docker/pkg/namesgenerator"
|
||||
spec "github.com/opencontainers/runtime-spec/specs-go"
|
||||
@ -539,7 +540,7 @@ func makeRuntime(runtime *Runtime) (retErr error) {
|
||||
// This check must be locked to prevent races
|
||||
runtimeAliveLock := filepath.Join(runtime.config.Engine.TmpDir, "alive.lck")
|
||||
runtimeAliveFile := filepath.Join(runtime.config.Engine.TmpDir, "alive")
|
||||
aliveLock, err := storage.GetLockfile(runtimeAliveLock)
|
||||
aliveLock, err := lockfile.GetLockFile(runtimeAliveLock)
|
||||
if err != nil {
|
||||
return fmt.Errorf("acquiring runtime init lock: %w", err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user