1
0
mirror of https://github.com/rancher/os.git synced 2025-05-18 13:00:21 +00:00
os/cmd/sysinit/sysinit.go
Sven Dowideit 5dfc818303 Stop overwriting a good resolv.conf file with the default one
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
2017-08-29 10:10:47 +10:00

21 lines
351 B
Go

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)
}
}