]> git.ipfire.org Git - thirdparty/libvirt.git/commit
spec: Restart libvirtd in posttrans
authorJiri Denemark <jdenemar@redhat.com>
Mon, 23 Oct 2017 11:06:44 +0000 (13:06 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Tue, 31 Oct 2017 15:00:50 +0000 (16:00 +0100)
commit1bf893406637e852daeaafec6617d3ee3716de25
treefcac5e20f13b5141e4dbbb0fdd089f582c0b9395
parentbc8a99ef06417a2303ccab455f9f045e2a617916
spec: Restart libvirtd in posttrans

When upgrading libvirt packages, there's no strict ordering for the
installation or removal of the individual libvirt sub packages. Thus
libvirt-daemon may be upgraded (and its %postun scriptlet) started
before all sub packages with driver libraries are upgraded. When
libvirt-daemon's %postun scriptlet restarts the daemon old drivers may
still be laying around and the daemon may crash when it tries to use
them.

Let's restart the daemon in %posttrans to make sure libvirtd is
restarted only after all sub packages are at the same version.

https://bugzilla.redhat.com/show_bug.cgi?id=1464300

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
libvirt.spec.in