mirror of
https://github.com/rancher/os.git
synced 2025-08-31 14:23:11 +00:00
Refactor to use libcompose
This commit is contained in:
2
main.go
2
main.go
@@ -6,6 +6,7 @@ import (
|
||||
|
||||
log "github.com/Sirupsen/logrus"
|
||||
"github.com/docker/docker/pkg/reexec"
|
||||
dockerlaunchMain "github.com/rancher/docker-from-scratch/main"
|
||||
"github.com/rancherio/os/cmd/cloudinit"
|
||||
"github.com/rancherio/os/cmd/control"
|
||||
"github.com/rancherio/os/cmd/network"
|
||||
@@ -39,6 +40,7 @@ func registerCmd(cmd string, mainFunc func()) {
|
||||
func main() {
|
||||
registerCmd("/init", osInit.MainInit)
|
||||
registerCmd(config.SYSINIT_BIN, sysinit.Main)
|
||||
registerCmd("/usr/bin/dockerlaunch", dockerlaunchMain.Main)
|
||||
registerCmd("/usr/bin/system-docker", systemdocker.Main)
|
||||
registerCmd("/sbin/poweroff", power.PowerOff)
|
||||
registerCmd("/sbin/reboot", power.Reboot)
|
||||
|
Reference in New Issue
Block a user