redhat/kernel.spec.template: Let kernel-modules installation rebuild initrd in UKI system

JIRA: https://issues.redhat.com/browse/RHEL-134892

Upstream Status: RHEL only

Users should be allowed to install kernel-modules in a system running UKI. Initrd should be rebuilt in this situation depending on 1. kernel-core is installed and 2. initrd exists. And location of initrd needs specified explicitly. Otherwise dracut will fail in UKI system.

Suggested-by: Vitaly Kuznetsov vkuznets@redhat.com

Signed-off-by: Li Tian litian@redhat.com

Edited by Li Tian

Merge request reports

Loading