Comment 5 for bug 1057646

Revision history for this message
Dave Pigott (dpigott) wrote :

OK. Done and pushed up to https://code.launchpad.net/~dpigott/lava-dispatcher/l-m-c-bootloader-fix, however this will not be as flexible as it could be. Talking to James Tunnicliffe and Ricardo, the bootloader configurations are defined and named in the hwpack manifest, and can actually be names anything.

Ricardo is suggesting we standardise for automation on "u_boot" and "uefi", adding any others as we go along. However, James pointed out that you could (in theory) have multiple different bootloader configurations in a hwpack with any names. The only truly safe way to do this is for the dispatcher to run a "linaro-media-create --hwpack $HWPACK --read-hwpack", which will produce output along the lines of:

+--------------------------------------+--------------------------------------+
Supported boards | Supported bootloaders
+--------------------------------------+--------------------------------------+
linaro-lt-panda | u_boot
+--------------------------------------+--------------------------------------+

Which we would then have to parse out the boot config name and parse it out and apply that. Because of the columnar nature of the output, this is a bit nasty, but doable.

Essentially, a future proof fix needs a little bit of thinking.