diff options
author | Samuel Mendoza-Jonas <sam@mendozajonas.com> | 2018-11-29 15:36:31 +1100 |
---|---|---|
committer | Samuel Mendoza-Jonas <sam@mendozajonas.com> | 2018-12-13 11:26:10 +1100 |
commit | 78c3a044d2302bacf27ac2d9ef179bc35824af4c (patch) | |
tree | f707733f12be825d3e18318d973ddc96e43751c9 /discover/platform.h | |
parent | 87017f0478536fcb927010618be483a5efe9260c (diff) | |
download | talos-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.h')
-rw-r--r-- | discover/platform.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/discover/platform.h b/discover/platform.h index f7d3d1c..5a5c990 100644 --- a/discover/platform.h +++ b/discover/platform.h @@ -31,6 +31,8 @@ const struct config *config_get(void); int config_set(struct config *config); void config_set_defaults(struct config *config); void config_set_autoboot(bool autoboot_enabled); +void config_populate_bootdev(struct config *config, + const struct param_list *pl); void config_populate_all(struct config *config, const struct param_list *pl); void params_update_network_values(struct param_list *pl, |