debian: Use dh_installmodules instead of calling "depmod" wrongly.
authorBen Pfaff <blp@nicira.com>
Thu, 5 Aug 2010 17:59:26 +0000 (10:59 -0700)
committerBen Pfaff <blp@nicira.com>
Wed, 11 Aug 2010 23:16:55 +0000 (16:16 -0700)
commit3d41239d308452b43bdf64d8acf7dde20e0fb986
treea53901674203f32d0cb1ab4f076af9baa1cdee58
parente519ea28d6da56330a46c5b1d7c3ad84a6c45536
debian: Use dh_installmodules instead of calling "depmod" wrongly.

Until now, the postinst for kernel modules built by the Debian packaging
has simply run "depmod -a", which is wrong, since this command rebuilds
the dependencies for the *running* kernel, which is not necessarily the
kernel for which modules are being installed.

The dh_installmodules script automatically adds the correct invocation of
depmod to the postinst script, so this commit switches to using that
instead.

This commit moves the kernel modules from /lib/modules/$KVERS into the
"kernel" subdirectory of that directory because dh_installmodules does not
support modules that are directly in the $KVERS directory.

CC: Sajjad Lateef <slateef@nicira.com>
debian/openvswitch-datapath-module-_KVERS_.postinst.modules.in
debian/rules.modules