dist: add workaround for cross-dist build for TL2

Upstream: no

Require systemd instead of systemd-udev on TL2 for cross dist build.

Signed-off-by: Kairui Song <kasong@tencent.com>
This commit is contained in:
Kairui Song 2022-11-24 14:50:51 +08:00
parent 9288a88958
commit f5a7de40ea
1 changed files with 1 additions and 1 deletions

View File

@ -229,7 +229,7 @@ Requires(preun): coreutils kmod
Requires(post): %{_bindir}/kernel-install
Requires(preun): %{_bindir}/kernel-install
# Kernel install hooks & initramfs
%if 0%{?rhel} == 7
%if 0%{?rhel} == 7 || "%{?dist}" == ".tl2"
Requires(post): systemd
Requires(preun): systemd
%else