packer-cn/builder/lxd
Chris Lundquist 68bb72380a [lxd] avoid extra container start/stop and race
Before we couldn't be sure if we were a permanent container or not.
Now we explicitly pass this on the command line so we don't depend on the
extra logic in `lxc publish --force` for ephemeral handling.

This means we avoid restarting the container after we publish
since we tear it down right away anyhow.

Likewise, there was sometimes a race which prevented the deletion
while the container was in a boot stage.
2017-09-05 12:44:39 -07:00
..
artifact.go [lxd] fixup some publish stuff 2017-09-05 12:44:39 -07:00
builder.go [lxd] fixup some publish stuff 2017-09-05 12:44:39 -07:00
builder_test.go [lxd] more cleanup 2017-09-05 12:44:39 -07:00
command.go [lxd] refactor commands to dry things up 2017-09-05 12:44:39 -07:00
communicator.go [lxd] refactor commands to dry things up 2017-09-05 12:44:39 -07:00
communicator_test.go [lxd] it 'works' 2017-09-05 12:44:39 -07:00
config.go [lxd] more cleanup 2017-09-05 12:44:39 -07:00
step_lxd_launch.go [lxd] avoid extra container start/stop and race 2017-09-05 12:44:39 -07:00
step_provision.go [lxd] refactor commands to dry things up 2017-09-05 12:44:39 -07:00
step_publish.go [lxd] avoid extra container start/stop and race 2017-09-05 12:44:39 -07:00