summaryrefslogtreecommitdiffstats
path: root/discover/platform.c
diff options
context:
space:
mode:
authorSamuel Mendoza-Jonas <sam@mendozajonas.com>2018-11-29 15:36:31 +1100
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>2018-12-13 11:26:10 +1100
commit78c3a044d2302bacf27ac2d9ef179bc35824af4c (patch)
treef707733f12be825d3e18318d973ddc96e43751c9 /discover/platform.c
parent87017f0478536fcb927010618be483a5efe9260c (diff)
downloadtalos-petitboot-78c3a044d2302bacf27ac2d9ef179bc35824af4c.tar.gz
talos-petitboot-78c3a044d2302bacf27ac2d9ef179bc35824af4c.zip
discover/platform-powerpc: read bootdev config from IPMI boot mailbox
The IPMI Get System Boot Options commands includes parameter 7, the "boot initiator mailbox". This can be used to hold arbitrary data to influence the boot order. Use this to provide an alternate bootdev configuration to Petitboot that will override the one saved to NVRAM. This provides more fine grained override options than the existing device-type based overrides. Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
Diffstat (limited to 'discover/platform.c')
-rw-r--r--discover/platform.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/discover/platform.c b/discover/platform.c
index 7712ef1..8ce52fc 100644
--- a/discover/platform.c
+++ b/discover/platform.c
@@ -468,7 +468,7 @@ static int read_bootdev(void *ctx, char **pos, struct autoboot_option *opt)
return rc;
}
-static void config_populate_bootdev(struct config *config,
+void config_populate_bootdev(struct config *config,
const struct param_list *pl)
{
struct autoboot_option *opt, *new = NULL;
OpenPOWER on IntegriCloud