Added a fail if the user sets detached to true when qemu is running locally

This commit is contained in:
Scott Coulton 2018-02-19 11:53:13 +11:00
parent 224ade8fea
commit a7ec17b08f

View File

@ -366,6 +366,11 @@ func runQemuLocal(config QemuConfig) error {
} }
} }
// Detached mode is only supported in a container.
if config.Detached == true {
return fmt.Errorf("Detached mode is only supported when running in a container, not locally")
}
qemuCmd := exec.Command(config.QemuBinPath, args...) qemuCmd := exec.Command(config.QemuBinPath, args...)
// If verbosity is enabled print out the full path/arguments // If verbosity is enabled print out the full path/arguments
log.Debugf("%v\n", qemuCmd.Args) log.Debugf("%v\n", qemuCmd.Args)