1
0
mirror of https://github.com/rancher/os.git synced 2025-09-09 18:50:04 +00:00

Stop overwriting a good resolv.conf file with the default one

Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
This commit is contained in:
Sven Dowideit
2017-08-28 14:22:50 +10:00
parent 3650b75377
commit 5dfc818303
14 changed files with 99 additions and 49 deletions

View File

@@ -3,10 +3,17 @@ package sysinit
import (
initPkg "github.com/rancher/os/init"
"github.com/rancher/os/log"
"io/ioutil"
"os"
)
func Main() {
log.InitLogger()
resolve, err := ioutil.ReadFile("/etc/resolv.conf")
log.Infof("2Resolv.conf == [%s], %s", resolve, err)
log.Infof("Exec %v", os.Args)
if err := initPkg.SysInit(); err != nil {
log.Fatal(err)
}