Comment 4 for bug 962189

Revision history for this message
Kirill Kabardin (kkabardin) wrote :

It seems I found a fix for this.

dkms.conf in openvswitch module sources lacks «AUTOINSTALL="yes"» entry, so this module won't rebuild on kernel updates.

Go to /usr/src/openvswitch-1.4.0 and add 'AUTOINSTALL=yes' to the end of the file. It should look like this:

==================================================

PACKAGE_NAME="openvswitch"
PACKAGE_VERSION="1.4.0"
MAKE="./configure --with-linux=/usr/src/linux-headers-`uname -r` ; make -C datapath/linux"
BUILT_MODULE_NAME[0]=openvswitch_mod
BUILT_MODULE_NAME[1]=brcompat_mod
BUILT_MODULE_LOCATION[0]=datapath/linux/
BUILT_MODULE_LOCATION[1]=datapath/linux/
DEST_MODULE_LOCATION[0]=/kernel/drivers/net/openvswitch/
DEST_MODULE_LOCATION[1]=/kernel/drivers/net/openvswitch/
AUTOINSTALL="yes"

==================================================

You can do it faster with this command:

# echo 'AUTOINSTALL="yes"' >> /usr/src/openvswitch-1.4.0/dkms.conf

This should fix module building on kernel updates.