From 9ba6dd71d7f9205ee18cd0c1a0d3b00d0694a256 Mon Sep 17 00:00:00 2001 From: Nalin Dahyabhai Date: Wed, 31 Aug 2016 11:44:35 -0400 Subject: [PATCH] Initialize reexec() handlers at startup-time When we start up, initialize handlers so that we can import blobs correctly when using the storage library. Signed-off-by: Nalin Dahyabhai --- cmd/skopeo/main.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmd/skopeo/main.go b/cmd/skopeo/main.go index 56d39c16..75874054 100644 --- a/cmd/skopeo/main.go +++ b/cmd/skopeo/main.go @@ -6,6 +6,7 @@ import ( "github.com/Sirupsen/logrus" "github.com/containers/image/signature" + "github.com/containers/storage/pkg/reexec" "github.com/projectatomic/skopeo/version" "github.com/urfave/cli" ) @@ -68,6 +69,9 @@ func createApp() *cli.App { } func main() { + if reexec.Init() { + return + } app := createApp() if err := app.Run(os.Args); err != nil { logrus.Fatal(err)