Do not run bootstrap automatically, but suggest it to user
This commit is contained in:
parent
cf0e5efe18
commit
5682dd99c1
19
main.go
19
main.go
@ -123,13 +123,18 @@ func main() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if !exists(usr.HomeDir + "/.out-of-tree") {
|
if !exists(usr.HomeDir + "/.out-of-tree/images") {
|
||||||
log.Println("First run, bootstrap...")
|
log.Println("No ~/.out-of-tree/images: " +
|
||||||
err = bootstrapHandler()
|
"Probably you need to run `out-of-tree bootstrap`" +
|
||||||
if err != nil {
|
" for downloading basic images")
|
||||||
log.Println("bootstrap error:", err)
|
}
|
||||||
}
|
|
||||||
return
|
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:]))
|
kingpin.MustParse(app.Parse(os.Args[1:]))
|
||||||
|
Loading…
Reference in New Issue
Block a user