From f5a7de40eae39f8b5a324cbd2f53107206f3c56b Mon Sep 17 00:00:00 2001 From: Kairui Song Date: Thu, 24 Nov 2022 14:50:51 +0800 Subject: [PATCH] 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 --- dist/templates/kernel.template.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/templates/kernel.template.spec b/dist/templates/kernel.template.spec index 7472c84c9..e104dbc68 100644 --- a/dist/templates/kernel.template.spec +++ b/dist/templates/kernel.template.spec @@ -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