sysinit.go 351 B

12345678910111213141516171819202122
  1. package sysinit
  2. import (
  3. "io/ioutil"
  4. "os"
  5. initPkg "github.com/rancher/os/init"
  6. "github.com/rancher/os/log"
  7. )
  8. func Main() {
  9. log.InitLogger()
  10. resolve, err := ioutil.ReadFile("/etc/resolv.conf")
  11. log.Infof("Resolv.conf == [%s], %v", resolve, err)
  12. log.Infof("Exec %v", os.Args)
  13. if err := initPkg.SysInit(); err != nil {
  14. log.Fatal(err)
  15. }
  16. }