diff --git a/qemu.spec b/qemu.spec index 53474aa..246c81c 100644 --- a/qemu.spec +++ b/qemu.spec @@ -1470,11 +1470,12 @@ getent passwd qemu >/dev/null || \ %postun user-binfmt /bin/systemctl --system try-restart systemd-binfmt.service &>/dev/null || : +%if %{user_static} %post user-static /bin/systemctl --system try-restart systemd-binfmt.service &>/dev/null || : %postun user-static /bin/systemctl --system try-restart systemd-binfmt.service &>/dev/null || : - +%endif %post guest-agent %systemd_post qemu-guest-agent.service