1
0
mirror of https://github.com/rancher/os.git synced 2025-08-31 22:32:14 +00:00

Add an autologin that allows us to fix the stty

Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
This commit is contained in:
Sven Dowideit
2017-06-20 21:48:14 +10:00
parent fecbb9df2e
commit 45e422d01e
7 changed files with 101 additions and 19 deletions

View File

@@ -6,6 +6,7 @@ import (
"github.com/docker/libcompose/yaml"
"github.com/rancher/os/compose"
"github.com/rancher/os/config"
"github.com/rancher/os/netconf"
)
var (
@@ -55,8 +56,8 @@ func recovery(initFailure error) {
var recoveryConfig config.CloudConfig
recoveryConfig.Rancher.Defaults = config.Defaults{
Network: config.NetworkConfig{
DNS: config.DNSConfig{
Network: netconf.NetworkConfig{
DNS: netconf.DNSConfig{
Nameservers: []string{
"8.8.8.8",
"8.8.4.4",
@@ -82,8 +83,10 @@ func recovery(initFailure error) {
}
_, err = config.ChainCfgFuncs(&recoveryConfig,
loadImages,
recoveryServices)
[]config.CfgFuncData{
config.CfgFuncData{"loadImages", loadImages},
config.CfgFuncData{"recovery console", recoveryServices},
})
if err != nil {
log.Fatal(err)
}