]> git.proxmox.com Git - ovs.git/commitdiff
fedora: Prioritize OVS modules in weak-updates.
authorJoe Stringer <joe@ovn.org>
Fri, 29 Jul 2016 00:09:38 +0000 (17:09 -0700)
committerJoe Stringer <joe@ovn.org>
Fri, 29 Jul 2016 20:03:56 +0000 (13:03 -0700)
Out-of-tree modules are installed into the kernel's "extra" modules
directory for the version that kmod-openvswitch is compiled against. For
all other kernels on the system at install time, a symlink is created in
the "weak-updates" directory. This provides a path for the same kernel
module to be used when minor kernel updates are done on a system.
However, without updating the depmod configuration the weak-update will
not be prioritized, so modprobe will switch back to using upstream
kernel modules when you upgrade. This patch introduces that depmod
configuration to ensure that the out-of-tree module is always used when
it is installed, regardless of kernel upgrades.

Signed-off-by: Joe Stringer <joe@ovn.org>
Acked-by: Pravin B Shelar <pshelar@ovn.org>
Acked-by: Flavio Leitner <fbl@sysclose.org>
rhel/openvswitch-kmod-fedora.spec.in

index ea89d15c8d87fdceb15339e396bd13f6619c3834..93adb0330cbb13e9f7e8f12c5162d701ad309677 100644 (file)
@@ -48,6 +48,8 @@ do
     modname="$(basename ${module})"
     echo "override ${modname%.ko} * extra" >> \
         $RPM_BUILD_ROOT/etc/depmod.d/kmod-openvswitch.conf
+    echo "override ${modname%.ko} * weak-updates" >> \
+        $RPM_BUILD_ROOT/etc/depmod.d/kmod-openvswitch.conf
 done
 
 %clean