debian: install openvswitch kernel module under "updates" directory
authorAnsis Atteka <aatteka@nicira.com>
Tue, 26 May 2015 23:49:49 +0000 (16:49 -0700)
committerAnsis Atteka <aatteka@nicira.com>
Wed, 27 May 2015 01:21:55 +0000 (18:21 -0700)
commita6380c8245ccc68f6c53116a5dd5f47dd8a2cca5
treefd939e28f0310b418136439094f9ad0dde5a7f9f
parent7e5dbf081cb3eab894a15861f2e8fbc97b16043d
debian: install openvswitch kernel module under "updates" directory

This patch fixes a bug where "modprobe openvswitch" command on Ubuntu
distribution would have sometimes tried to load OVS kernel module that
shipped together with Linux Kernel, even though one had also installed
OVS datapath debian package created with module-assistant.  Because of
this issue force-reload-kmod command occasionally malfunctioned and
failed to load the right kernel module.

This bug happened *occasionally* because the default Ubuntu depmod
configuration in /etc/depmod.d/ubuntu.conf is set to look for kernel
modules first in "updates" directory, then in "ubuntu" directory and
then in other directories.  If there were two openvswitch.ko modules
in "other directories", then modprobe would have loaded kernel
module that was nondeterministically listed first by file system.

Signed-off-by: Ansis Atteka <aatteka@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
debian/rules.modules