]> git.ozlabs.org Git - petitboot/commit
discover/device-handler: Restore autoboot setting on requery v1.7.3
authorSamuel Mendoza-Jonas <sam@mendozajonas.com>
Mon, 27 Aug 2018 01:50:47 +0000 (11:50 +1000)
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>
Thu, 6 Sep 2018 23:44:29 +0000 (09:44 +1000)
commit93d41f97eedca3684922f4c3cae82d4c74b04210
tree74509b98423f6a9604b7ce0ce91d190ebec93483
parentf0e038a4b21edeab8cd5e6a0aa7439d882bbabef
discover/device-handler: Restore autoboot setting on requery

When a device requery is triggered we cancel any default boot option on
the device. This also disables autoboot which we don't want; any boot
options found after the requery will not be able to autoboot.
To avoid this restore the existing autoboot setting after checking for
default options.

This prevents a particular corner case where a default boot option has
been selected for boot but one of its boot files has stalled or is
taking more time to download than the requery timeout and the requery
accidentally cancels autoboot preventing Petitboot from trying to boot
again.

Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
(cherry picked from commit 3917e88b838001b13a19fc6ea01d08b08c0770ca)
discover/device-handler.c