Fix get boot options returning unexpected results

Get boot options is returning wrong value when
boot device is set to cdrom followed by setting boot
device to bios.

In the IPMI spec the boot device selector has options
for both "boot source" (default/disk/crdom/network)
and "boot mode" (default/bios/safe/diag). Since this
isn't a bit field, you can't override for eg both the
source and mode at the same time.

The solution is if a set boot device is mapping to a boot
source, then reset the boot mode D-Bus property to default,
or vice versa. This way the ipmid code can determine which
property is not at the default value

Resolves openbmc/openbmc#3067
Resolves openbmc/openbmc#3068

Change-Id: I072c82a161d56f118510fe1f9e5c75cb5c610295
Signed-off-by: Marri Devender Rao <devenrao@in.ibm.com>
1 file changed