[PATCH 2/6] spec: Only add libvirt-daemon pre install script if building with qemu

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The %pre script in libvirt-daemon is specific to qemu, so only include
it if building with qemu support.
---
 libvirt.spec.in | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/libvirt.spec.in b/libvirt.spec.in
index 7f2a23a..1306322 100644
--- a/libvirt.spec.in
+++ b/libvirt.spec.in
@@ -1522,8 +1522,9 @@ then
 fi
 
 %if %{with_libvirtd}
+    %if %{with_qemu}
 %pre daemon
-    %if 0%{?fedora} >= 12 || 0%{?rhel} >= 6
+        %if 0%{?fedora} >= 12 || 0%{?rhel} >= 6
 # We want soft static allocation of well-known ids, as disk images
 # are commonly shared across NFS mounts by id rather than name; see
 # https://fedoraproject.org/wiki/Packaging:UsersAndGroups
@@ -1537,6 +1538,7 @@ if ! getent passwd qemu >/dev/null; then
   fi
 fi
 exit 0
+        %endif
     %endif
 
 %post daemon
-- 
1.8.0.1

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]