mirror of
https://github.com/containers/skopeo.git
synced 2025-06-28 23:57:51 +00:00
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 <nalin@redhat.com>
This commit is contained in:
parent
dd6441b546
commit
9ba6dd71d7
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user