From 8b0244eded20077ab9dc894478803d355ef8a780 Mon Sep 17 00:00:00 2001 From: Coiby Xu Date: Thu, 6 Mar 2025 16:47:26 +0800 Subject: [PATCH] ima-setup: run zipl after building initramfs for s390x Resolves: https://issues.redhat.com/browse/RHEL-74293 Conflict: None Upstream Status: https://src.fedoraproject.org/rpms/ima-evm-utils.git commit 2f1870b21accb4393a420cf55cba774dfd2d78ae Author: Coiby Xu 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 Signed-off-by: Coiby Xu --- ima-setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ima-setup.sh b/ima-setup.sh index 915b61d..3fa8b34 100755 --- a/ima-setup.sh +++ b/ima-setup.sh @@ -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