[libvirt] [PATCH v2] spec: Restart libvirtd in posttrans

Michal Privoznik mprivozn at redhat.com
Wed Nov 1 09:50:38 UTC 2017


On 10/31/2017 10:59 PM, Jiri Denemark wrote:
> 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 at redhat.com>
> ---
>  libvirt.spec.in | 37 ++++++++++++++++++++++++++++++-------
>  1 file changed, 30 insertions(+), 7 deletions(-)
> 

ACK and SFF.

Michal




More information about the libvir-list mailing list