Restrict user-static to user-static builds

This commit is contained in:
Nathaniel McCallum 2017-07-20 11:51:59 -04:00
parent f73c470a02
commit 22c2909bc1
1 changed files with 2 additions and 1 deletions

View File

@ -1478,11 +1478,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