提交 f422ab05 编写于 作者: J Jim Fehlig

spec: Only add libvirt-daemon pre install script if building with qemu

The %pre script in libvirt-daemon is specific to qemu, so only include
it if building with qemu support.
上级 dc4973f8
...@@ -1524,8 +1524,9 @@ then ...@@ -1524,8 +1524,9 @@ then
fi fi
%if %{with_libvirtd} %if %{with_libvirtd}
%if %{with_qemu}
%pre daemon %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 # We want soft static allocation of well-known ids, as disk images
# are commonly shared across NFS mounts by id rather than name; see # are commonly shared across NFS mounts by id rather than name; see
# https://fedoraproject.org/wiki/Packaging:UsersAndGroups # https://fedoraproject.org/wiki/Packaging:UsersAndGroups
...@@ -1539,6 +1540,7 @@ if ! getent passwd qemu >/dev/null; then ...@@ -1539,6 +1540,7 @@ if ! getent passwd qemu >/dev/null; then
fi fi
fi fi
exit 0 exit 0
%endif
%endif %endif
%post daemon %post daemon
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册