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

22 lines
354 B
Go
Raw Normal View History

2015-02-09 04:38:37 +00:00
package sysinit
import (
"io/ioutil"
"os"
2018-01-25 01:47:17 +00:00
2018-09-16 04:55:26 +00:00
"github.com/rancher/os/pkg/log"
"github.com/rancher/os/pkg/sysinit"
2015-02-09 04:38:37 +00:00
)
2015-02-19 20:58:29 +00:00
func Main() {
log.InitLogger()
resolve, err := ioutil.ReadFile("/etc/resolv.conf")
2018-01-25 01:47:17 +00:00
log.Infof("Resolv.conf == [%s], %v", resolve, err)
log.Infof("Exec %v", os.Args)
2018-09-16 04:55:26 +00:00
if err := sysinit.SysInit(); err != nil {
2015-02-09 04:38:37 +00:00
log.Fatal(err)
}
}