summaryrefslogtreecommitdiffstats
path: root/test/parser/test-grub2-implicit-default-unset.c
Commit message (Collapse)AuthorAgeFilesLines
* discover/grub2: Allow unset and invalid defaultsJeremy Kerr2014-12-111-0/+25
If the default environment variable is unset or invalid (i.e., references a non-existent boot option), then GRUB2 will fallback to the first boot option present. This is preventing petitboot from autobooting where no default is explicitly set, or is stale. This change adds this fallback behaviour to petitboot. Because we don't know if the first option will be a default at parse time (as no other options matched the default env var), we need to keep options in a list, and register them with the discover server once the parse is complete. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
OpenPOWER on IntegriCloud