Add support for selecting a downloaded image in `pmbootstrap flasher`
Right now, although pmOS generates pre-built images for main an community devices, there is no support in its tooling to directly flash these images. Some device wiki pages provide specific instructions on how to the flashing in that case, e.g: MSM8916, Oneplus 6. But others do not, like the Shift6mq or the FP4.
This seems like a tooling missing feature, since it requires for every device wiki to duplicate installation instructions with the fastboot
(or equivalent) raw commands that are needed to install an image, when pmbootstrap already has that information.
My idea would be to add
pmbootstrap flasher --image image
option that allows for users to select a downloaded image to flash. Then pmbootstrap takes care of the rest. A single documentation in the regular installation page should fix most missing or duplicated documentation. If this makes sense to maintainers, I can give the implementation a try.
@craftyguy also suggested that implementing the ability to download the image from bpo could be even a greater improvement. Although might require some further refactoring than adding a simple plain option.