Remove sleep
calls in Start
and Launch
processes
#93
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
A number of internals cleanups and changes to remove the need for
Retry
inStart
andLaunch
. Calls which were previously handled inRetry
loops now either block until success, or exit with an error. Therefore, either the function succeeds, or does not need to retry as an error must first be resolved. Closes #79.Overall summary of edits in
qemu/ops.go
:Stop()
: simplify and add outputgetHostArchitecture()
: fix logging format bugStart()
andLaunch()
(below)in
Start()
:-daemonize
andcmd.Run(..)
cmd.Run(...)
blocks untilqemu-system
succeeds and forks to backgroundawaiting ssh
, etc)Retry
calls (calls now block or error rather thanfailing silently)
mount
directories in/mnt
per standard Linux practicesin
Launch()
:Retry
(calls now block or error)sfdisk
calls