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 <aatt...@nicira.com>
Reported-by: Michael Kruze <mkr...@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

_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to