summaryrefslogtreecommitdiffstats
path: root/discover/device-handler.c
diff options
context:
space:
mode:
authorSamuel Mendoza-Jonas <sam@mendozajonas.com>2018-01-29 14:21:47 +1100
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>2018-02-12 13:47:15 +1100
commitef13876e9feacc576724b7eba089d0483e84ceee (patch)
tree3fffeeaf44c51c91e5f685a2632813c7458fce5d /discover/device-handler.c
parent11c43508e4360456298a6dcb0563614e9a118b41 (diff)
downloadtalos-petitboot-ef13876e9feacc576724b7eba089d0483e84ceee.tar.gz
talos-petitboot-ef13876e9feacc576724b7eba089d0483e84ceee.zip
discover/device-handler: Treat empty boot order as 'boot any'
It is possible to have autoboot enabled with an empty boot order. Currently this acts as if autoboot is disabled, but it likely makes more sense to the user for this to behave as "autoboot any device". Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
Diffstat (limited to 'discover/device-handler.c')
-rw-r--r--discover/device-handler.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/discover/device-handler.c b/discover/device-handler.c
index 7a570f9..a6eb884 100644
--- a/discover/device-handler.c
+++ b/discover/device-handler.c
@@ -832,6 +832,9 @@ static enum default_priority default_option_priority(
int boot_match = autoboot_option_priority(config, opt);
if (boot_match > 0)
return boot_match;
+ } else {
+ /* If there is no specific boot order, boot any device */
+ return DEFAULT_PRIORITY_LOCAL_FIRST;
}
/* If the option didn't match any entry in the array, it is disabled */
OpenPOWER on IntegriCloud