Fix conditional logic for systemd/systemd-udev split
The `0%{?rhel} <= 7` conditional is incorrect. It evaluates true on
Fedora, but we want to require systemd-udev there. It also is incorrect
for RHEL versions earlier than 7, which do not have systemd at all.
- Resolves: rhbz#2157788
This commit is contained in:
parent
bdcc70091a
commit
aeb3bee67e
1 changed files with 1 additions and 1 deletions
|
|
@ -65,7 +65,7 @@ Requires(pre): shadow-utils
|
|||
# /etc/modprobe.d/
|
||||
Requires: kmod
|
||||
# /etc/udev/rules.d/ and /usr/lib/udev/rules.d/
|
||||
%if 0%{?rhel} <= 7
|
||||
%if %{defined el7}
|
||||
Requires: systemd
|
||||
%else
|
||||
Requires: systemd-udev
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue