From bacd209169cc3a6e71b69109212670838e236f6f Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Fri, 4 Jun 2010 10:52:43 -0700 Subject: [PATCH] xenserver: Ditch ovs-xenserverd even on XenServer 5.5.0. Examining the XAPI source code shows that at startup it invokes a script named /opt/xensource/libexec/xapi-startup-script, if one exists. Testing shows that this was also true in XenServer 5.5.0. No such script is installed by default. Searching for "xapi-startup-script" on Google (with the quotes) has only one hit, which is documentation on XAPI startup. So it seems that we're pretty safe in taking advantage of this hook ourselves. This commit changes the RPM scripts to install refresh-network-uuids as the XAPI startup hook on XenServer 5.5.0. CC: Rob Hoes --- xenserver/openvswitch-xen.spec | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/xenserver/openvswitch-xen.spec b/xenserver/openvswitch-xen.spec index 3418dae1d..5e7175ddd 100644 --- a/xenserver/openvswitch-xen.spec +++ b/xenserver/openvswitch-xen.spec @@ -115,6 +115,7 @@ if [ ! -f /etc/xensource-inventory ]; then printf "XenSource inventory not present in /etc/xensource-inventory" exit 1 fi +. /etc/xensource-inventory if [ "$1" = "1" ]; then if md5sum -c --status <