sysinit.go 354 B

12345678910111213141516171819202122
  1. package sysinit
  2. import (
  3. "io/ioutil"
  4. "os"
  5. "github.com/rancher/os/pkg/log"
  6. "github.com/rancher/os/pkg/sysinit"
  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 := sysinit.SysInit(); err != nil {
  14. log.Fatal(err)
  15. }
  16. }