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 <nalin@redhat.com>
This commit is contained in:
parent
9b88295f69
commit
d45ff58056
1 changed files with 4 additions and 0 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue