sysinit.go 351 B

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