]> git.ozlabs.org Git - petitboot/commitdiff
discover/device-handler: Process queue after device added
authorSamuel Mendoza-Jonas <sam@mendozajonas.com>
Tue, 24 Jan 2017 03:52:20 +0000 (14:52 +1100)
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>
Tue, 31 Jan 2017 00:59:26 +0000 (11:59 +1100)
In device_handler_discover() we process the unresolved boot options
queue first. However the discover_device in question has not yet been
added to handler->devices so when a parser tries to search for a
matching device it will fail.
The discover_device will be added to the handler if it has not already
in device_handler_discover_context_commit() so move the call to
process_boot_option_queue() after it.

Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>

No differences found