Boards implementing a/b partitioning even for fastboot boot might
sometimes expire the counter and fail the boot. By always setting the
active image to 'a' we're catching this case and flipping it back, and
in other cases the operation becomes a nop.
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
In some occations dev_path is not valid and we therefor can't
dereference it. Check for this and ignore any events without a dev_path.
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>