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 /lib/types | |
parent | f69fabee4a120cebaeff2359350e62bd960088f4 (diff) | |
download | petitboot-d3e95283e69d3099fe9f36e56be1f645f565c843.zip petitboot-d3e95283e69d3099fe9f36e56be1f645f565c843.tar.gz |
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 'lib/types')
-rw-r--r-- | lib/types/types.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/types/types.h b/lib/types/types.h index 25bf556..f543b7f 100644 --- a/lib/types/types.h +++ b/lib/types/types.h @@ -122,9 +122,15 @@ struct config { bool autoboot_enabled; unsigned int autoboot_timeout_sec; struct network_config network; + struct boot_priority *boot_priorities; unsigned int n_boot_priorities; + char *boot_device; + + unsigned int ipmi_bootdev; + bool ipmi_bootdev_persistent; + char *lang; /* not user-settable */ |