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:
parent
788e9dc39a
commit
7ff814f89c
@ -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()
|
||||
}
|
||||
|
4
main.go
4
main.go
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user