X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=xenserver%2Fopenvswitch-xen.spec;h=d2433f986f5d9560a0cb4ce171ab4ca727f916c9;hb=4959755dc8512f6a0b19ce13138d6d001629904d;hp=c796a1befe5287361cd3ee5409ce6465f2887d9d;hpb=b9e09a071d7d01b87c70341a9e9111b0c353c867;p=openvswitch diff --git a/xenserver/openvswitch-xen.spec b/xenserver/openvswitch-xen.spec index c796a1be..d2433f98 100644 --- a/xenserver/openvswitch-xen.spec +++ b/xenserver/openvswitch-xen.spec @@ -114,6 +114,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 < /etc/xensource/network.conf + fi +fi + + if test ! -e /var/xapi/network.dbcache; then if test "$1" = 1; then printf "Creating xapi database cache... " @@ -279,6 +302,11 @@ fi %postun if [ "$1" = "0" ]; then # $1 = 1 for upgrade + . /etc/xensource-inventory + if test "$PRODUCT_VERSION" = "5.5.0"; then + XSS=/opt/xensource/libexec/xapi-startup-script + rm -f $XSS + fi rm -f /usr/lib/xsconsole/plugins-base/XSFeatureVSwitch.pyc \ /usr/lib/xsconsole/plugins-base/XSFeatureVSwitch.pyo @@ -317,8 +345,13 @@ if [ "$1" = "0" ]; then # $1 = 1 for upgrade rm -f /etc/openvswitch/vswitchd.cacert rm -f /var/xapi/network.dbcache - # Configure system to use bridge - echo bridge > /etc/xensource/network.conf + if test "$PRODUCT_VERSION" != "5.5.0"; then + # Configure system to use bridge + echo bridge > /etc/xensource/network.conf + else + # Get rid of network.conf entirely, to make the system pristine. + rm -f /etc/xensource/network.conf + fi printf "\nYou MUST reboot the server now to complete the change to\n" printf "standard Xen networking. Attempts to modify networking on the\n" @@ -336,9 +369,6 @@ fi /etc/profile.d/openvswitch.sh /lib/modules/%{xen_version}/kernel/extra/openvswitch/openvswitch_mod.ko /lib/modules/%{xen_version}/kernel/extra/openvswitch/brcompat_mod.ko -%if %(echo '%{xen_version}'|awk -F"[.-]" '{if ($3==18) print 1; else print 0;}') -/lib/modules/%{xen_version}/kernel/extra/openvswitch/veth_mod.ko -%endif /usr/share/openvswitch/scripts/refresh-network-uuids /usr/share/openvswitch/scripts/interface-reconfigure /usr/share/openvswitch/scripts/InterfaceReconfigure.py