mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-20 03:25:18 +00:00
Two RPM conditional fixes for RHEL-7
Ensure systemd is used in RHEL-7 and cgconfig is not used in RHEL-7 (cherry picked from commit 1cdbe4d22a5aa56126d197cc87d581eda89a42cf)
This commit is contained in:
parent
2e2a81be22
commit
6503cb1217
@ -118,8 +118,9 @@
|
||||
%define with_hyperv 0
|
||||
%endif
|
||||
|
||||
# Although earlier Fedora has systemd, libvirt still used sysvinit
|
||||
%if 0%{?fedora} >= 17
|
||||
# Fedora 17 / RHEL-7 are first where we use systemd. Although earlier
|
||||
# Fedora has systemd, libvirt still used sysvinit there.
|
||||
%if 0%{?fedora} >= 17 || 0{?rhel} >= 7
|
||||
%define with_systemd 1
|
||||
%endif
|
||||
|
||||
@ -975,9 +976,9 @@ if [ $1 -eq 1 ] ; then
|
||||
fi
|
||||
%else
|
||||
%if %{with_cgconfig}
|
||||
# Starting with Fedora 16, systemd automounts all cgroups, and cgconfig is
|
||||
# no longer a necessary service.
|
||||
%if 0%{?rhel} || (0%{?fedora} && 0%{?fedora} < 16)
|
||||
# Starting with Fedora 16/RHEL-7, systemd automounts all cgroups,
|
||||
# and cgconfig is no longer a necessary service.
|
||||
%if (0%{?rhel} && 0%{?rhel} < 7) || (0%{?fedora} && 0%{?fedora} < 16)
|
||||
if [ "$1" -eq "1" ]; then
|
||||
/sbin/chkconfig cgconfig on
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user