X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=xenserver%2Fopenvswitch-xen.spec;h=d2433f986f5d9560a0cb4ce171ab4ca727f916c9;hb=597cf5a1c197e269ad4376364422e23f5405105f;hp=67dd26d29f8c36bc39aed70948731ab6bebe8be8;hpb=05a35b57491f8a53283db17af44e0df5f25b333c;p=openvswitch diff --git a/xenserver/openvswitch-xen.spec b/xenserver/openvswitch-xen.spec index 67dd26d2..d2433f98 100644 --- a/xenserver/openvswitch-xen.spec +++ b/xenserver/openvswitch-xen.spec @@ -172,8 +172,15 @@ if test "$PRODUCT_VERSION" = "5.5.0"; then fi rm -f $XSS ln -s $RNU $XSS + + # If /etc/xensource/network.conf doesn't exist (it was added in 5.6.0), + # then interface-reconfigure will be unhappy when we run it below. + if test ! -e /etc/xensource/network.conf; then + echo bridge > /etc/xensource/network.conf + fi fi + if test ! -e /var/xapi/network.dbcache; then if test "$1" = 1; then printf "Creating xapi database cache... " @@ -338,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"