On Sat, Sep 10, 2011 at 03:09:31PM +0900, Simon Horman wrote: > By registering an error-handler for the init script used > in openvswitch-switch.postinst and detecting if module insertion fails, > it is possible to avoid failure to install in the case where the > openvswitch_mod module is not available. > > This is done without altering the behaviour that the start target > of the openvswtich-switch init script will fail if module insertion fails. > > This patch also adds a friendly hint as as to why starting > openvswitch-switch has failed if it is due to failure to insert > the openvswtich_mod. This message is displayed as necessary both > on package install and other calls to the start target of the > init script.
I didn't know about --error-handler. Thanks for educating me. I noticed one nit and fixed it as part of the commit: s/==/=/ here: > + if test X"$HAVE_KMOD" == Xno; then I also fixed a misspelling in the commit message. I'll push this to master soon. _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev