From d45ff58056a26e00e75889111517b3e64c0f233e Mon Sep 17 00:00:00 2001 From: Nalin Dahyabhai Date: Tue, 22 Nov 2016 14:25:48 -0500 Subject: [PATCH] Initialize the reexec package Any binary that will be managing storage needs to initialize the reexec package in order to be able to apply or read image layers. Signed-off-by: Nalin Dahyabhai --- cmd/server/main.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmd/server/main.go b/cmd/server/main.go index e9dcf7be..2f5a20dc 100644 --- a/cmd/server/main.go +++ b/cmd/server/main.go @@ -7,6 +7,7 @@ import ( "sort" "github.com/Sirupsen/logrus" + "github.com/containers/storage/pkg/reexec" "github.com/kubernetes-incubator/cri-o/server" "github.com/opencontainers/runc/libcontainer/selinux" "github.com/urfave/cli" @@ -78,6 +79,9 @@ func (f byName) Swap(i, j int) { } func main() { + if reexec.Init() { + return + } app := cli.NewApp() app.Name = "ocid" app.Usage = "ocid server"