1
0
mirror of https://github.com/rancher/os.git synced 2025-09-01 14:48:55 +00:00

Write /run/console-done before executing /etc/rc.local

This commit is contained in:
Josh Curl
2016-10-14 10:48:32 -07:00
parent 9654e4eaad
commit e608377088
3 changed files with 10 additions and 7 deletions

View File

@@ -111,6 +111,11 @@ func Main() {
if err := runScript(startScript); err != nil {
log.Error(err)
}
if err := ioutil.WriteFile(consoleDone, []byte(cfg.Rancher.Console), 0644); err != nil {
log.Error(err)
}
if err := runScript("/etc/rc.local"); err != nil {
log.Error(err)
}
@@ -122,10 +127,6 @@ func Main() {
log.Fatal(err)
}
if err := ioutil.WriteFile(consoleDone, []byte(cfg.Rancher.Console), 0644); err != nil {
log.Error(err)
}
log.Fatal(syscall.Exec(respawnBinPath, []string{"respawn", "-f", "/etc/respawn.conf"}, os.Environ()))
}