tremplin: Use running lxd version for disaster recovery strategy.
Tremplin was previously using "version.Version" to decide which LXD
recovery strategy to attempt. It turns out this is a compile time
constant and will always be LXD 5 in our build. This need not
correspond the the LXD version launched by Tremplin, which not
known at compile time.
The output of 'lxd version' is authoritative.
BUG=b:277003404
TEST=Build tatl, termina-dlc, launch a container and inspect logs to see
version matches expectation.
Change-Id: I949963bcab4c0ff63e24a5b0a487d4bdf0dac2d5
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/tremplin/+/4456469
Auto-Submit: Nicholas Verne <nverne@chromium.org>
Commit-Queue: James Ye <jamesye@google.com>
Tested-by: Nicholas Verne <nverne@chromium.org>
Reviewed-by: James Ye <jamesye@google.com>
1 file changed