mirror of
https://github.com/rancher/os.git
synced 2025-08-15 21:43:42 +00:00
- Use burmilla GitHub repos - Release under burmilla Docker Hub - GitHub action for create releases - Updated boot image and login banner - Use Debian as default console - Updated system-cron to v0.5.0 - Updated services to latest versions - Bump up kernel to 4.14.206 - Include burmilla/os-debianconsole:v1.9.0 to initrd
25 lines
435 B
Go
25 lines
435 B
Go
package control
|
|
|
|
import (
|
|
"os"
|
|
"os/exec"
|
|
"syscall"
|
|
|
|
"github.com/burmilla/os/pkg/log"
|
|
|
|
"github.com/codegangsta/cli"
|
|
)
|
|
|
|
func recoveryInitAction(c *cli.Context) error {
|
|
if err := writeRespawn("root", false, true); err != nil {
|
|
log.Error(err)
|
|
}
|
|
|
|
respawnBinPath, err := exec.LookPath("respawn")
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
return syscall.Exec(respawnBinPath, []string{"respawn", "-f", "/etc/respawn.conf"}, os.Environ())
|
|
}
|