Restrict user-static to user-static builds

(cherry picked from commit 22c2909bc1)
This commit is contained in:
Nathaniel McCallum 2017-07-20 11:51:59 -04:00 committed by Cole Robinson
parent cd72cb5564
commit 6cd6fd73b9
1 changed files with 2 additions and 1 deletions

View File

@ -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