[ovs-dev] [PATCH] packaging: Do not automatically restart user-space on upgrade

Ansis Atteka aatteka at nicira.com
Fri Jan 13 19:40:50 UTC 2012


This will make Debian upgrade consistent with Xenserver
and RH where user must manually run force-reload-kmod
command after the upgrade.

Issue: 9128

Signed-off-by: Ansis Atteka <aatteka at nicira.com>
Reported-by: Michael Kruze <mkruze at nicira.com>
---
 debian/openvswitch-switch.postinst |    6 ++++++
 debian/rules                       |    3 +--
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/debian/openvswitch-switch.postinst b/debian/openvswitch-switch.postinst
index c50853a..4ec2c06 100755
--- a/debian/openvswitch-switch.postinst
+++ b/debian/openvswitch-switch.postinst
@@ -63,6 +63,12 @@ fi
 
 #DEBHELPER#
 
+if [ -n "$2" ]; then
+    printf "\nTo use the new Open vSwitch install, you should execute the\n"
+    printf "force-reload-kmod command. Failure to do so may result in\n"
+    printf "incorrect operation.\n\n"
+fi
+
 exit 0
 
 
diff --git a/debian/rules b/debian/rules
index c8b6c63..613b155 100755
--- a/debian/rules
+++ b/debian/rules
@@ -117,8 +117,7 @@ binary-common:
 	dh_installexamples
 	dh_installdebconf
 	dh_installlogrotate
-	dh_installinit -R -Nopenvswitch-switch
-	dh_installinit -R -popenvswitch-switch --error-handler=init_script_error
+	dh_installinit -r -popenvswitch-switch --error-handler=init_script_error
 	dh_installcron
 	dh_installman --language=C
 	dh_link
-- 
1.7.5.4




More information about the dev mailing list