]> git.proxmox.com Git - ovs.git/commit
rhel: Fix upgrade path
authorGreg Rose <gvrose8192@gmail.com>
Tue, 25 Jun 2019 18:45:52 +0000 (11:45 -0700)
committerJustin Pettit <jpettit@ovn.org>
Tue, 25 Jun 2019 23:18:35 +0000 (16:18 -0700)
commitabdb5d720a4a31406c734a2051ca910fcc009041
treee6081fcc53f6201c005aee483db6551266f0264f
parent0b021a29d4449ffd6ce6391ee5b4f7af0d40da30
rhel: Fix upgrade path

There is a bug in the upgrade path from the old kmod-openvswitch SysV
based RPM to the new openvswitch-kmod systemd based RPM. Since the
name of the package is changed it is not possible to use the yum
or rpm upgrade options.  This prevents passing in a 1 or 2 to the
%postun scriptlet section of the older RPM and that causes the section
to be treated as an 'erase'.  The old kmod-openvswitch %postun section
proceeds to erase the symlinks in ../weak-updates/openvwswitch that
the installation of the new package had just created.

Fix this by adding a %posttrans tag to the systemd spec file.  This
scriptlet is called after the symlinks have just been erased and
it calls the ovs-kmod-manage.sh script to recreate the symlinks and
run depmod -a again so that the correct kernel modules will be
found and loaded.

VMware-BZ: #236987

Cc: Aaron Conole <aconole@redhat.com>
Cc: Flavio Leitner <fbl@redhat.com>
Signed-off-by: Greg Rose <gvrose8192@gmail.com>
Acked-by: Aaron Conole <aconole@redhat.com>
Signed-off-by: Justin Pettit <jpettit@ovn.org>
rhel/openvswitch-kmod-fedora.spec.in