arrfab / rpms / shim

Forked from rpms/shim 4 years ago
Clone

Blame SOURCES/0069-Another-testplan-error.patch

4210fa
From a2e66ece4d6b46ba2195cef76913c42177e6b4a2 Mon Sep 17 00:00:00 2001
4210fa
From: Peter Jones <pjones@redhat.com>
4210fa
Date: Thu, 2 Oct 2014 01:01:17 -0400
4210fa
Subject: [PATCH 69/74] Another testplan error.
4210fa
4210fa
Signed-off-by: Peter Jones <pjones@redhat.com>
4210fa
---
4210fa
 testplan.txt | 24 +++++++++++-------------
4210fa
 1 file changed, 11 insertions(+), 13 deletions(-)
4210fa
4210fa
diff --git a/testplan.txt b/testplan.txt
4210fa
index ab88781..0b0569e 100644
4210fa
--- a/testplan.txt
4210fa
+++ b/testplan.txt
4210fa
@@ -47,27 +47,25 @@ How to test a new shim build for RHEL/fedora:
4210fa
     fs0:\EFI\test\lockdown.efi
4210fa
 17) enable secure boot verification
4210fa
 18) verify it can't run other binaries:
4210fa
-    fs0:\EFI\redhat\grubx64.efi
4210fa
+    fs0:\EFI\test\grubx64.efi
4210fa
     result should be an error, probably similar to:
4210fa
     "fs0:\...\grubx64.efi is not recognized as an internal or external command"
4210fa
-19) copy test.efi to grubx64.efi:
4210fa
-    cp \EFI\test\test.efi \EFI\test\grubx64.efi
4210fa
-20) in the EFI shell, run fs0:\EFI\test\shim.efi
4210fa
-21) you should see MokManager.  Enroll the certificate you added in #13, and
4210fa
+19) in the EFI shell, run fs0:\EFI\test\shim.efi
4210fa
+20) you should see MokManager.  Enroll the certificate you added in #13, and
4210fa
     the system will reboot.
4210fa
-22) reboot to the UEFI shell and run fs0:\EFI\test\shim.efi
4210fa
+21) reboot to the UEFI shell and run fs0:\EFI\test\shim.efi
4210fa
     result: "This is a test application that should be completely safe."
4210fa
   If you get the expected result, shim can run things signed by its internal
4210fa
   key ring.  Check a box someplace that says it can do that.
4210fa
-23) from the EFI shell, copy grub to grubx64.efi:
4210fa
+22) from the EFI shell, copy grub to grubx64.efi:
4210fa
     cp \EFI\test\grub.efi \EFI\test\grubx64.efi
4210fa
-24) in the EFI shell, run fs0:\EFI\test\shim.efi
4210fa
+23) in the EFI shell, run fs0:\EFI\test\shim.efi
4210fa
     result: this should start grub, which will let you boot a kernel
4210fa
   If grub starts, it means shim can run things signed by a key in the system's
4210fa
   db.  Check a box someplace that says it can do that.
4210fa
   If the kernel boots, it means shim can run things from Mok.  Check a box
4210fa
   someplace that says it can do that.
4210fa
-25) remove all boot entries and the BootOrder variable:
4210fa
+24) remove all boot entries and the BootOrder variable:
4210fa
     [root@uefi ~]# cd /sys/firmware/efi/efivars/
4210fa
     [root@uefi efivars]# rm -vf Boot[0123456789]* BootOrder-*
4210fa
     removed ‘Boot0000-8be4df61-93ca-11d2-aa0d-00e098032b8c’
4210fa
@@ -76,14 +74,14 @@ How to test a new shim build for RHEL/fedora:
4210fa
     removed ‘Boot2001-8be4df61-93ca-11d2-aa0d-00e098032b8c’
4210fa
     removed ‘BootOrder-8be4df61-93ca-11d2-aa0d-00e098032b8c’
4210fa
     [root@uefi efivars]# 
4210fa
-27) reboot
4210fa
-28) the system should run \EFI\BOOT\BOOTX64.EFI .  If it doesn't, you may just
4210fa
+25) reboot
4210fa
+26) the system should run \EFI\BOOT\BOOTX64.EFI .  If it doesn't, you may just
4210fa
     have an old machine.  In that case, go to the EFI shell and run:
4210fa
     fs0:\EFI\BOOT\BOOTX64.EFI
4210fa
   If this works, you should see a bit of output very quickly and then the same
4210fa
   thing as #24.  This means shim recognized it was in \EFI\BOOT and ran
4210fa
   fallback.efi, which worked.
4210fa
-29) copy the unsigned grub into place and reboot:
4210fa
+27) copy the unsigned grub into place and reboot:
4210fa
   cp /boot/efi/EFI/test/grubx64-unsigned.efi /boot/efi/EFI/test/grubx64.efi
4210fa
-30) reboot again.
4210fa
+28) reboot again.
4210fa
     result: shim should refuse to load grub.
4210fa
-- 
4210fa
1.9.3
4210fa