From: Gerd Hoffmann <kraxel@xxxxxxxxxx> modules-core: use %posttrans Otherwise depmod might not be present yet. Signed-off-by: Gerd Hoffmann <kraxel@xxxxxxxxxx> diff --git a/redhat/kernel.spec.template b/redhat/kernel.spec.template index blahblah..blahblah 100755 --- a/redhat/kernel.spec.template +++ b/redhat/kernel.spec.template @@ -2874,7 +2874,7 @@ fi\ # %%kernel_modules_core_post [<subpackage>] # %define kernel_modules_core_post() \ -%{expand:%%post %{?1:%{1}-}modules-core}\ +%{expand:%%posttrans %{?1:%{1}-}modules-core}\ /sbin/depmod -a %{KVERREL}%{?1:+%{1}}\ %{nil}\ %{expand:%%postun %{?1:%{1}-}modules-core}\ -- https://gitlab.com/cki-project/kernel-ark/-/merge_requests/2179 _______________________________________________ kernel mailing list -- kernel@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to kernel-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/kernel@xxxxxxxxxxxxxxxxxxxxxxx Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue