ima-setup: run zipl after building initramfs for s390x

Resolves: https://issues.redhat.com/browse/RHEL-82392
Conflict: None

Upstream Status: https://src.fedoraproject.org/rpms/ima-evm-utils.git

commit 2f1870b21accb4393a420cf55cba774dfd2d78ae
Author: Coiby Xu <coxu@redhat.com>
Date:   Tue Feb 25 13:17:28 2025 +0800

    ima-setup: run zipl after building initramfs for s390x

    Resovles: https://issues.redhat.com/browse/RHEL-74293

    Without running zipl, the old initramfs will be booted.

    Signed-off-by: Coiby Xu <coxu@redhat.com>

Signed-off-by: Coiby Xu <coxu@redhat.com>
This commit is contained in:
Coiby Xu 2025-03-06 16:47:26 +08:00
parent 062931180e
commit 3f5494f50f

View File

@ -136,7 +136,7 @@ if ! lsinitrd --mod | grep -q integrity; then
dracut -f --kver "$_default_kernel"
fi
fi
[[ $(uname -m) == s390x ]] && zipl &> /dev/null
fi
if ! load_ima_policy "$ima_policy_path"; then