aboutsummaryrefslogtreecommitdiff
path: root/xenserver/openvswitch-xen.spec
diff options
context:
space:
mode:
authorAndrew Evans <aevans@nicira.com>2011-03-10 16:02:12 -0800
committerAndrew Evans <aevans@nicira.com>2011-03-10 16:02:12 -0800
commita4b2e516ffd0aa466f2d0182c89a91ce5d23d9a4 (patch)
tree5afeebf833f11c2f226c636c97c538e7e3aa46a8 /xenserver/openvswitch-xen.spec
parent8a86254e9857f241bae149fda7b7d390a541d57c (diff)
xenserver: Don't touch /etc/xensource/network.conf on upgrade.
The post-install script for the openvswitch userspace package always sets the bridge type to 'vswitch'. If someone reconfigures XenServer to use the Linux bridge instead, then upgrades Open vSwitch, their system will revert to using Open vSwitch as the bridge. Reported-by: Michael Mao <mmao@nicira.com> Bug #4825.
Diffstat (limited to 'xenserver/openvswitch-xen.spec')
-rw-r--r--xenserver/openvswitch-xen.spec6
1 files changed, 3 insertions, 3 deletions
diff --git a/xenserver/openvswitch-xen.spec b/xenserver/openvswitch-xen.spec
index ab2134e2..450cd34b 100644
--- a/xenserver/openvswitch-xen.spec
+++ b/xenserver/openvswitch-xen.spec
@@ -246,10 +246,10 @@ for s in openvswitch openvswitch-xapi-update; do
chkconfig $s on || printf "Could not enable $s init script."
done
-# Configure system to use Open vSwitch
-echo vswitch > /etc/xensource/network.conf
-
if [ "$1" = "1" ]; then # $1 = 2 for upgrade
+ # Configure system to use Open vSwitch
+ echo vswitch > /etc/xensource/network.conf
+
printf "\nYou MUST reboot the server NOW to complete the change to\n"
printf "Open vSwitch. Attempts to modify networking on the server\n"
printf "or any hosted VM will fail until after the reboot and could\n"