Blame tests/p_shim/01_shim_secureboot_signed.sh

25c93a
#!/bin/bash
25c93a
# This test will verify that shim.efi is correctly signed with correct cert in the CA chain
25c93a
25c93a
t_Log "Running $0 -  Verifying that shim.efi is correctly signed with correct cert"
25c93a
25c93a
if [ "$centos_ver" = "7" ] ; then
25c93a
  t_InstallPackage pesign shim
a59265
  pesign --show-signature --in /boot/efi/EFI/centos/shim.efi|grep -q 'Red Hat Inc.'
9bd632
  t_CheckExitStatus $?
25c93a
else
25c93a
  t_log "previous versions than CentOS 7 aren't using shim/secureboot ... skipping"
25c93a
  exit 0
25c93a
fi
25c93a