From: Ben Pfaff Date: Fri, 4 Jun 2010 17:52:43 +0000 (-0700) Subject: xenserver: Ditch ovs-xenserverd even on XenServer 5.5.0. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bacd209169cc3a6e71b69109212670838e236f6f;p=openvswitch 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 --- diff --git a/xenserver/openvswitch-xen.spec b/xenserver/openvswitch-xen.spec index 3418dae1..5e7175dd 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 <