1
0
mirror of https://github.com/rancher/os.git synced 2025-07-30 22:24:33 +00:00

will this make console.sh for non-upgraded persistent consoles?

Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
This commit is contained in:
Sven Dowideit 2017-02-02 14:05:18 +00:00
parent ff448b0b96
commit 5cd881b791
2 changed files with 13 additions and 0 deletions

View File

@ -30,7 +30,18 @@ type symlink struct {
oldname, newname string
}
func ConsoleInitMain() {
err := consoleInitFunc()
if err != nil {
log.Fatal(err)
}
}
func consoleInitAction(c *cli.Context) error {
return consoleInitFunc()
}
func consoleInitFunc() error {
cfg := config.LoadConfig()
// Now that we're booted, stop writing debug messages to the console

View File

@ -22,6 +22,8 @@ import (
var entrypoints = map[string]func(){
"cloud-init-execute": cloudinitexecute.Main,
"cloud-init-save": cloudinitsave.Main,
"console": control.ConsoleInitMain,
"console.sh": control.ConsoleInitMain,
"docker": docker.Main,
"dockerlaunch": dfs.Main,
"halt": power.Halt,