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:
parent
ff448b0b96
commit
5cd881b791
@ -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
|
||||
|
2
main.go
2
main.go
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user