diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2014-12-11 16:38:21 +0800 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2014-12-15 15:47:40 +0800 |
commit | d3e95283e69d3099fe9f36e56be1f645f565c843 (patch) | |
tree | 42e2f2c71ede42c9922a327b26340b5909f65b5a /discover/platform.h | |
parent | f69fabee4a120cebaeff2359350e62bd960088f4 (diff) | |
download | talos-petitboot-d3e95283e69d3099fe9f36e56be1f645f565c843.tar.gz talos-petitboot-d3e95283e69d3099fe9f36e56be1f645f565c843.zip |
discover: Integrate ipmi bootdev settings into the priority system
Currently, we expose the boot device priorities through an array in
struct config, which will either be the default (network -> disk), or a
single device type specified by the IPMI code.
Rather than hide the implementation details in this array, we'd like to
expose the details of the machine configuration instead. This allows
user visibility of the real boot configuration (for example, if an IPMI
boot preference is set).
This change removes the priority array, and replaces it with the
ipmi_bootdev data (and a persistent flag). We update the
default-conflict-resolution code to reflect the priorities between IPMI
and UUID preferences.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'discover/platform.h')
-rw-r--r-- | discover/platform.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/discover/platform.h b/discover/platform.h index 5601b61..ab1bd88 100644 --- a/discover/platform.h +++ b/discover/platform.h @@ -8,7 +8,8 @@ struct platform { bool (*probe)(struct platform *, void *); int (*load_config)(struct platform *, struct config *); int (*save_config)(struct platform *, struct config *); - void (*finalise_config)(struct platform *); + void (*finalise_config)(struct platform *, + const struct config *); int (*get_sysinfo)(struct platform *, struct system_info *); uint16_t dhcp_arch_id; void *platform_data; |