mirror of
https://github.com/rancher/os.git
synced 2025-08-01 15:08:47 +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
|
oldname, newname string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func ConsoleInitMain() {
|
||||||
|
err := consoleInitFunc()
|
||||||
|
if err != nil {
|
||||||
|
log.Fatal(err)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
func consoleInitAction(c *cli.Context) error {
|
func consoleInitAction(c *cli.Context) error {
|
||||||
|
return consoleInitFunc()
|
||||||
|
}
|
||||||
|
|
||||||
|
func consoleInitFunc() error {
|
||||||
cfg := config.LoadConfig()
|
cfg := config.LoadConfig()
|
||||||
|
|
||||||
// Now that we're booted, stop writing debug messages to the console
|
// 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(){
|
var entrypoints = map[string]func(){
|
||||||
"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,
|
"docker": docker.Main,
|
||||||
"dockerlaunch": dfs.Main,
|
"dockerlaunch": dfs.Main,
|
||||||
"halt": power.Halt,
|
"halt": power.Halt,
|
||||||
|
Loading…
Reference in New Issue
Block a user