From 6cd6fd73b9e10052c2562539b049fbb7146be542 Mon Sep 17 00:00:00 2001 From: Nathaniel McCallum Date: Thu, 20 Jul 2017 11:51:59 -0400 Subject: [PATCH] Restrict user-static to user-static builds (cherry picked from commit 22c2909bc13f14c325812fabf3c5384eab203e43) --- qemu.spec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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