Fix firmware revision is always 0.00

Sometimes ipmid will show "Could not found an BMC software Object" in
journal and the firmware revision in command "ipmitool mc info" show
0.00 until BMC reboot or restart phosphor-ipmi-host.

Root cause is that the firmware revision will only try to get version
one time.

The issue happend when xyz.openbmc_project.Software.BMC.Updater.service
get started after the service phosphor-ipmi-host.service had been
started.
And the command "ipmitool mc info" is called before
xyz.openbmc_project.Software.BMC.Updater.service get started.

Tested:
Test the result of xyz.openbmc_project.Software.BMC.Updater.service get
started after phosphor-ipmi-host.service:

$ ipmitool mc info | grep 'Firmware Revision'
Firmware Revision         : 2.09

$ systemctl stop xyz.openbmc_project.Software.BMC.Updater.service
$ systemctl restart phosphor-ipmi-host
$ ipmitool mc info | grep 'Firmware Revision'
Firmware Revision         : 0.00

$ systemctl start xyz.openbmc_project.Software.BMC.Updater.service
$ ipmitool mc info | grep 'Firmware Revision'
Firmware Revision         : 2.09

Signed-off-by: JeffLin <JeffLin2@quantatw.com>
Change-Id: Icd82d114d74a8f5cc778886d8392527a8c71907b
1 file changed