This will print a warning and avoid user-space restart if system already had 1.3 or older OVS installed. This is a workaround for a bug where older kernel modules could not communicate with newer user-space.
Issue: 9128 Signed-off-by: Ansis Atteka <[email protected]> Reported-by: Michael Kruze <[email protected]> --- debian/openvswitch-switch.postinst | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/debian/openvswitch-switch.postinst b/debian/openvswitch-switch.postinst index c50853a..e2d7ce6 100755 --- a/debian/openvswitch-switch.postinst +++ b/debian/openvswitch-switch.postinst @@ -61,6 +61,15 @@ if test -x /etc/init.d/openvswitch-switch; then fi fi +if [ -n "$2" ]; then + if dpkg --compare-versions $2 lt 1.4; then + printf "\nThere is an upgrade bug from pre-1.4 OpenvSwitch. As a\n" + printf "workaround you must manually run force-reload-kmod command\n" + printf "or reboot system to finish the upgrade.\n\n" + exit 0 + fi +fi + #DEBHELPER# exit 0 -- 1.7.5.4 _______________________________________________ dev mailing list [email protected] http://openvswitch.org/mailman/listinfo/dev
