On Wed, Jan 18, 2012 at 02:43:30PM -0800, Ansis Atteka wrote:
> 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]>

This seems like a reasonable solution.  Thank you.

Please put "" around $2 here:

> +    if dpkg --compare-versions $2 lt 1.4; then

Please spell Open vSwitch with a space:
> +        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

I'm nervous about calling "exit 0" here.  This will skip not just
restarting the daemon but anything else that debhelper adds.
Currently that's just update-rc.d but who knows what it might be in
the future?  So I think it would be better to change the
dh_installinit invocation to use --no-start and then add our own code
to postinst to do the restart when it is appropriate.

Thanks,

Ben.
_______________________________________________
dev mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/dev

Reply via email to