Check OperatingSystemStatus to determine POST done.

updateBiosDone property in service xyz.openbmc_project.Host.Misc.Manager
is used to determine the POST done. But this service has Intel specific
dependencies. So if this service is not available, we can use property
OperatingSystemState in xyz.openbmc_project.State.OperatingSystem
service. According to x86-power-control repo, OperatingSystemState
should return one of "CBoot", "PXEBoot", "DiagBoot", "CDROMBoot",
"ROMBoot", "BootComplete" or "Standby" once the POST is asserted. Only
"Inactive" indicates that POST is not done.

Tested:
Tested this on the BMC and verified that the host state  changes to
postComplete

Signed-off-by: kasunath <kasunath@google.com>
Change-Id: Ia9c6edf2305ef83587e187d1cd508e0024c052a5
1 file changed