[ovs-git] [openvswitch/ovs] 26b364: rhel: Fix upgrade path

gvrose8192 noreply at github.com
Tue Jun 25 23:14:31 UTC 2019


  Branch: refs/heads/master
  Home:   https://github.com/openvswitch/ovs
  Commit: 26b3641c9a6e9461e5e307e6e8070753c0d74f55
      https://github.com/openvswitch/ovs/commit/26b3641c9a6e9461e5e307e6e8070753c0d74f55
  Author: Greg Rose <gvrose8192 at gmail.com>
  Date:   2019-06-25 (Tue, 25 Jun 2019)

  Changed paths:
    M rhel/openvswitch-kmod-fedora.spec.in

  Log Message:
  -----------
  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 at redhat.com>
Cc: Flavio Leitner <fbl at redhat.com>
Signed-off-by: Greg Rose <gvrose8192 at gmail.com>
Acked-by: Aaron Conole <aconole at redhat.com>




More information about the git mailing list