1
0
Fork 0

Do not run bootstrap automatically, but suggest it to user

timestamps
dump_stack() 2018-12-02 03:39:54 +00:00
parent cf0e5efe18
commit 5682dd99c1
1 changed files with 12 additions and 7 deletions

19
main.go
View File

@ -123,13 +123,18 @@ func main() {
}
}
if !exists(usr.HomeDir + "/.out-of-tree") {
log.Println("First run, bootstrap...")
err = bootstrapHandler()
if err != nil {
log.Println("bootstrap error:", err)
}
return
if !exists(usr.HomeDir + "/.out-of-tree/images") {
log.Println("No ~/.out-of-tree/images: " +
"Probably you need to run `out-of-tree bootstrap`" +
" for downloading basic images")
}
if !exists(usr.HomeDir + "/.out-of-tree/kernels.toml") {
log.Println("No ~/.out-of-tree/kernels.toml: Probably you " +
"need to run `out-of-tree kernels autogen` in " +
"directory that contains .out-of-tree.toml " +
"with defined kernel masks " +
"(see docs at https://out-of-tree.io)")
}
kingpin.MustParse(app.Parse(os.Args[1:]))