Blame tests/p_grub2/01_grub2_secureboot_signed.sh

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