]> git.ozlabs.org Git - petitboot/commit
discover: Integrate ipmi bootdev settings into the priority system
authorJeremy Kerr <jk@ozlabs.org>
Thu, 11 Dec 2014 08:38:21 +0000 (16:38 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Mon, 15 Dec 2014 07:47:40 +0000 (15:47 +0800)
commitd3e95283e69d3099fe9f36e56be1f645f565c843
tree42e2f2c71ede42c9922a327b26340b5909f65b5a
parentf69fabee4a120cebaeff2359350e62bd960088f4
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>
discover/device-handler.c
discover/platform-powerpc.c
discover/platform.c
discover/platform.h
lib/pb-config/pb-config.c
lib/pb-protocol/pb-protocol.c
lib/types/types.h