Parameteric qemu images for spread
I want to add a way to run
spread with a
qemu backend but provide the image name explicitly, as that image will come directly from one stage of the CI pipeline to the next, and using any stock image is meaningless.
My initial idea is to add something at the backend level, where the image normally would go, that refers to parameters defined in another section, e.g.:
parameters: image: help: system image to run backends: qemu: image: parameter: image
Initially spread would load and parse all parameters as strings, all parameters would be optional but actually using the backend would fail if the parameter was not passed on command line, e.g.
spread --image=foo.img qemu:
For reference, qemu backend documentation: https://github.com/snapcore/spread#qemu