[PATCH 3/5] discover/handler: Implement temporary autoboot messages

Jeremy Kerr jk at ozlabs.org
Tue Jul 10 12:18:28 AEST 2018


Hi Sam,

> If I'm reading this correctly, applying a temporary autoboot override is
> a one-time event in that it checks the currently available boot options
> and sets a default if one matches the device type. But this won't be
> applied to newly found boot options right?

We apply to new options too. By setting handler->temp_autoboot (and the
additions to default_option_priority), we enforce the temporary autoboot
option on newly discovered options.

[That's really the core part of the patch; going through the existing
options to re-find a default is needed too, but there's a bit more code
involved with that]

If you like, I can add some comments to better explain this.

Cheers,


Jeremy


More information about the Petitboot mailing list