1
0
mirror of https://github.com/rancher/os.git synced 2025-04-27 19:15:23 +00:00

Remove unused entryponts in Main func

This commit is contained in:
niusmallnan 2019-03-18 15:26:52 +08:00 committed by niusmallnan
parent 788e9dc39a
commit 7ff814f89c
2 changed files with 0 additions and 10 deletions

View File

@ -37,12 +37,6 @@ type symlink struct {
oldname, newname string
}
func ConsoleInitMain() {
if err := consoleInitFunc(); err != nil {
log.Fatal(err)
}
}
func consoleInitAction(c *cli.Context) error {
return consoleInitFunc()
}

View File

@ -15,7 +15,6 @@ import (
"github.com/rancher/os/cmd/wait"
"github.com/rancher/os/pkg/dfs"
"github.com/docker/docker/docker"
"github.com/docker/docker/pkg/reexec"
)
@ -23,9 +22,6 @@ var entrypoints = map[string]func(){
"autologin": control.AutologinMain,
"cloud-init-execute": cloudinitexecute.Main,
"cloud-init-save": cloudinitsave.Main,
"console": control.ConsoleInitMain,
"console.sh": control.ConsoleInitMain,
"docker": docker.Main,
"dockerlaunch": dfs.Main,
"init": osInit.MainInit,
"netconf": network.Main,