|
|
|
@ -6,22 +6,21 @@ import (
|
|
|
|
|
"runtime" |
|
|
|
|
"time" |
|
|
|
|
|
|
|
|
|
"git.wegmueller.it/opencloud/opencloud/cli" |
|
|
|
|
"git.wegmueller.it/opencloud/opencloud/image/build" |
|
|
|
|
"git.wegmueller.it/opencloud/opencloud/smf" |
|
|
|
|
"git.wegmueller.it/opencloud/opencloud/svcgen" |
|
|
|
|
"git.wegmueller.it/opencloud/opencloud/sysacct" |
|
|
|
|
"github.com/goodhosts/hostsfile" |
|
|
|
|
"github.com/sirupsen/logrus" |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
var version string |
|
|
|
|
|
|
|
|
|
func main() { |
|
|
|
|
logrus.SetFormatter(&logrus.TextFormatter{ |
|
|
|
|
DisableTimestamp: true, |
|
|
|
|
QuoteEmptyFields: true, |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
logrus.Infof("running buildhelper for os %s(%s) version %s", runtime.GOOS, runtime.GOARCH, version) |
|
|
|
|
logrus.Infof("running buildhelper for os %s(%s) version %s", runtime.GOOS, runtime.GOARCH, cli.GetVersion()) |
|
|
|
|
|
|
|
|
|
// A zone is not completely booted when you can login.
|
|
|
|
|
// normally people wont notice this due to the fact that a manually
|
|
|
|
@ -117,7 +116,7 @@ func main() {
|
|
|
|
|
|
|
|
|
|
for _, svc := range imageConfig.Services { |
|
|
|
|
logrus.Infof("Importing service description for %s", svc.Name) |
|
|
|
|
if err := smf.Import(svc.Manifest); err != nil { |
|
|
|
|
if err := svcgen.Import(svc.Manifest); err != nil { |
|
|
|
|
panic(err) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|