mirror of
https://github.com/rancher/os.git
synced 2025-04-28 03:20:50 +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
|
oldname, newname string
|
||||||
}
|
}
|
||||||
|
|
||||||
func ConsoleInitMain() {
|
|
||||||
if err := consoleInitFunc(); err != nil {
|
|
||||||
log.Fatal(err)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func consoleInitAction(c *cli.Context) error {
|
func consoleInitAction(c *cli.Context) error {
|
||||||
return consoleInitFunc()
|
return consoleInitFunc()
|
||||||
}
|
}
|
||||||
|
4
main.go
4
main.go
@ -15,7 +15,6 @@ import (
|
|||||||
"github.com/rancher/os/cmd/wait"
|
"github.com/rancher/os/cmd/wait"
|
||||||
"github.com/rancher/os/pkg/dfs"
|
"github.com/rancher/os/pkg/dfs"
|
||||||
|
|
||||||
"github.com/docker/docker/docker"
|
|
||||||
"github.com/docker/docker/pkg/reexec"
|
"github.com/docker/docker/pkg/reexec"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -23,9 +22,6 @@ var entrypoints = map[string]func(){
|
|||||||
"autologin": control.AutologinMain,
|
"autologin": control.AutologinMain,
|
||||||
"cloud-init-execute": cloudinitexecute.Main,
|
"cloud-init-execute": cloudinitexecute.Main,
|
||||||
"cloud-init-save": cloudinitsave.Main,
|
"cloud-init-save": cloudinitsave.Main,
|
||||||
"console": control.ConsoleInitMain,
|
|
||||||
"console.sh": control.ConsoleInitMain,
|
|
||||||
"docker": docker.Main,
|
|
||||||
"dockerlaunch": dfs.Main,
|
"dockerlaunch": dfs.Main,
|
||||||
"init": osInit.MainInit,
|
"init": osInit.MainInit,
|
||||||
"netconf": network.Main,
|
"netconf": network.Main,
|
||||||
|
Loading…
Reference in New Issue
Block a user