summaryrefslogtreecommitdiffstats
path: root/discover/platform.c
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2014-04-30 10:58:43 +0800
committerJeremy Kerr <jk@ozlabs.org>2014-07-21 17:20:08 +0800
commit1860aac29624b1cb292a7ca549dc063bcd3f9bb6 (patch)
treee26898762a34d66219fcfbbadb9e0a5865fa493b /discover/platform.c
parente19c5fe83174de749843bb8486a0d12c25adcb82 (diff)
downloadtalos-petitboot-1860aac29624b1cb292a7ca549dc063bcd3f9bb6.tar.gz
talos-petitboot-1860aac29624b1cb292a7ca549dc063bcd3f9bb6.zip
discover: check config.boot_device before setting a default
If a default device is set, we only allow booting from that device. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'discover/platform.c')
-rw-r--r--discover/platform.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/discover/platform.c b/discover/platform.c
index d745712..3ab6b7b 100644
--- a/discover/platform.c
+++ b/discover/platform.c
@@ -88,6 +88,7 @@ void config_set_defaults(struct config *config)
config->network.n_interfaces = 0;
config->network.dns_servers = NULL;
config->network.n_dns_servers = 0;
+ config->boot_device = NULL;
config->n_boot_priorities = 2;
config->boot_priorities = talloc_array(config, struct boot_priority,
OpenPOWER on IntegriCloud