EA-1012: Fix Host.software_version for XCP.

Don't create any of the Host.software_version:product_* fields in XCP.

Signed-off-by: John Else <john.else@citrix.com>
EA-1012: Expose the PLATFORM_NAME via Host.software_version:platform_name

Signed-off-by: John Else <john.else@citrix.com>
CP-2930: Use PLATFORM_VERSION for host compatibility check.

Signed-off-by: John Else <john.else@citrix.com>
CP-2930: Use PLATFORM_VERSION for host homogeneity check.

Signed-off-by: John Else <john.else@citrix.com>
CP-2390: Use PLATFORM_VERSION for rolling pool upgrade checks.

Treat any host which does not have PLATFORM_VERSION defined as if it has
PLATFORM_VERSION 0.0.0, i.e. older than any host which does have
PLATFORM_VERSION defined.

Signed-off-by: John Else <john.else@citrix.com>
EA-1012: Make config dump make sense for XCP.

Log PLATFORM_NAME and PLATFORM_VERSION at xapi startup.

Only log PRODUCT_BRAND and PRODUCT_VERSION if they are non-empty i.e.
this is a XenServer installation.

Signed-off-by: John Else <john.else@citrix.com>
EA-1012: Hardcode PLATFORM_NAME/PLATFORM_VERSION.

Signed-off-by: John Else <john.else@citrix.com>
CA-70555: Bond slaves should never go into CURRENT_INTERFACES

...and this is why we need to update this field in the inventory file
to contain only PIFs that have currently_attached = true. That is the
only way, due to various dependencies.

Signed-off-by: Rob Hoes <rob.hoes@citrix.com>
EA-1012: Move xapi-v6d to PACKAGES.xcp.

Now the XCP pack exists, we can put xapi-v6d into it, instead of
conditionally adding it to PACKAGES.main

Signed-off-by: John Else <john.else@citrix.com>
Fix trivial shell warning

scripts/with-vdi defined a function in a syntax that gave a warning when called
with 'sh -n'.

Signed-off-by: Mike McClurg <mike.mcclurg@citrix.com>
CA-70699: expose CDROMs to PV guests with device-type=cdrom rather than disk.

This information is used by the guest to (eg) decide whether to recognise
partitions within the disk. Note we don't support PV CDROMs in the sense of
media sense/ eject/ insert.

Note that we must special-case HVM guests CDROMs because
1. we must prevent blkback from opening the physical-device, since this
   would cause a subsequent qemu eject, vdi_deactivate to block
2. qemu expects the CDROM configuration to be in xenstore, as a PV
   disk configuration

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
Merge commit '3a6c49b4d6c3529f5871ee10b50763f636e82607'
Merge commit 'd85d42d4d021a9f17ff95c2c341d550495b89829'
Merge commit '1712c287b8afe3e056b5f2097faf3efaef414ce6'
CA-70829: one character fix for my recent "refactoring"

The patch explains itself. Hmm, this is embarrassing ...

Signed-off-by: Zheng Li <zheng.li@eu.citrix.com>
Make a file fhs.ml containing important paths that will change as part of the FHS compliance work

Signed-off-by: Jon Ludlam <jonathan.ludlam@eu.citrix.com>
Switch the OMakefiles to using the new FHS variables

Signed-off-by: Jon Ludlam <jonathan.ludlam@eu.citrix.com>
Use OPTDIR rather than BASE_PATH
Move everything over to using Fhs.ml / @ substitution

Note that there should be no user visible change in this changeset;
everything should be the same as it was before.

Signed-off-by: Jon Ludlam <jonathan.ludlam@eu.citrix.com>
Move over to using SBINDIR for installing xapi

SBINDIR is currently set to the same as BINDIR

Signed-off-by: Jon Ludlam <jonathan.ludlam@eu.citrix.com>