Accepting request 867611 from home:lin_ma:branches:Virtualization
Use '%service_del_postun_without_restart' instead of '%service_del_postun' (bsc#1178565) OBS-URL: https://build.opensuse.org/request/show/867611 OBS-URL: https://build.opensuse.org/package/show/Virtualization/qemu?expand=0&rev=609
This commit is contained in:
parent
4e66254e0d
commit
643d32ed8f
@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Jan 29 02:47:35 UTC 2021 - Lin Ma <lma@suse.com>
|
||||
|
||||
- Use '%service_del_postun_without_restart' instead of '%service_del_postun'
|
||||
to avoid "Failed to try-restart qemu-ga@.service" error while updating the
|
||||
qemu-guest-agent. (bsc#1178565)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jan 26 17:52:09 UTC 2021 - Bruce Rogers <brogers@suse.com>
|
||||
|
||||
|
@ -1759,7 +1759,12 @@ if [ -e /dev/virtio-ports/org.qemu.guest_agent.0 ]; then
|
||||
fi
|
||||
|
||||
%postun guest-agent
|
||||
%service_del_postun qemu-ga@.service
|
||||
%service_del_postun_without_restart qemu-ga@.service
|
||||
if [ "$1" = "1" ] ; then
|
||||
if [ -e /dev/virtio-ports/org.qemu.guest_agent.0 ]; then
|
||||
/usr/bin/systemctl restart qemu-ga@virtio\\x2dports-org.qemu.guest_agent.0.service || :
|
||||
fi
|
||||
fi
|
||||
|
||||
%pre ksm
|
||||
%service_add_pre ksm.service
|
||||
|
@ -1618,7 +1618,12 @@ if [ -e /dev/virtio-ports/org.qemu.guest_agent.0 ]; then
|
||||
fi
|
||||
|
||||
%postun guest-agent
|
||||
%service_del_postun qemu-ga@.service
|
||||
%service_del_postun_without_restart qemu-ga@.service
|
||||
if [ "$1" = "1" ] ; then
|
||||
if [ -e /dev/virtio-ports/org.qemu.guest_agent.0 ]; then
|
||||
/usr/bin/systemctl restart qemu-ga@virtio\\x2dports-org.qemu.guest_agent.0.service || :
|
||||
fi
|
||||
fi
|
||||
|
||||
%pre ksm
|
||||
%service_add_pre ksm.service
|
||||
|
Loading…
Reference in New Issue
Block a user