1
0

Implements bootstrap, fixes #3

This commit is contained in:
2018-12-01 17:34:57 +00:00
parent 31d51a9f2e
commit 5116ffe015
3 changed files with 88 additions and 0 deletions

View File

@ -78,6 +78,9 @@ func main() {
debugFlagGDB := debugCommand.Flag("gdb", "Set gdb listen address")
debugGDB := debugFlagGDB.Default("tcp::1234").String()
bootstrapCommand := app.Command("bootstrap",
"Create directories && download images")
// Check for required commands
for _, cmd := range []string{"timeout", "docker", "qemu"} {
_, err := exec.Command("which", cmd).CombinedOutput()
@ -123,6 +126,8 @@ func main() {
case debugCommand.FullCommand():
err = debugHandler(kcfg, *path, *debugKernel, *debugGDB,
*dockerTimeout)
case bootstrapCommand.FullCommand():
err = bootstrapHandler()
}
if err != nil {