]> xenbits.xensource.com Git - xcp/xen-api.git/commit
CA-32077 Gracefully handle missing /etc/xensource-inventory file
authorThomas Sanders <thomas.sanders@citrix.com>
Wed, 26 Jan 2011 17:39:04 +0000 (17:39 +0000)
committerThomas Sanders <thomas.sanders@citrix.com>
Wed, 26 Jan 2011 17:39:04 +0000 (17:39 +0000)
commit372b06f8baec9ca74dcdfe113a96d0816421d5fe
treeebdf3b8c26d298e9be6076df7f417e64bccbbce8
parent0d8da431aca3b9199edd460455cc36b937439fb3
CA-32077 Gracefully handle missing /etc/xensource-inventory file

xapi was failing nastily on start-up if the xensource-inventory file was
missing.  Now it generates a minimal one if none exists. This does not include
a build number, so version.ml now falls back to using a build number from the
Make environment if one is not available from the inventory, i.e. it falls
back to the behaviour from before Matthias's commit for CA-43574 (build number
from xensource-inventory).

Signed-off-by: Thomas Sanders <thomas.sanders@citrix.com>
Makefile
ocaml/util/util_inventory.ml
ocaml/util/util_inventory.mli