From: Ben Pfaff Date: Mon, 19 Apr 2010 18:40:32 +0000 (-0700) Subject: xenserver: Restore original InterfaceReconfigure*.py on uninstall. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b9e09a071d7d01b87c70341a9e9111b0c353c867;p=openvswitch xenserver: Restore original InterfaceReconfigure*.py on uninstall. The %post script fragment in the RPM spec was moving aside the original InterfaceReconfigure{,Bridge,Vswitch}.py scripts, but the %postun was not restoring them. This commit restores them in %postun. Without this change, installing the openvswitch RPM on a stock XenServer and then uninstalling it breaks XenServer networking. Bug #2624. Reported-by: Ram Jothikumar Signed-off-by: Ben Pfaff --- diff --git a/xenserver/openvswitch-xen.spec b/xenserver/openvswitch-xen.spec index d70b73ae..c796a1be 100644 --- a/xenserver/openvswitch-xen.spec +++ b/xenserver/openvswitch-xen.spec @@ -293,6 +293,9 @@ if [ "$1" = "0" ]; then # $1 = 1 for upgrade # Restore original XenServer scripts for f in \ /opt/xensource/libexec/interface-reconfigure \ + /opt/xensource/libexec/InterfaceReconfigure.py \ + /opt/xensource/libexec/InterfaceReconfigureBridge.py \ + /opt/xensource/libexec/InterfaceReconfigureVswitch.py \ /etc/xensource/scripts/vif \ /usr/sbin/xen-bugtool \ /usr/sbin/brctl