From b261a30c900a81b76c18bcc71841aab13849d069 Mon Sep 17 00:00:00 2001 From: James Bottomley Date: Mon, 30 Nov 2020 12:28:16 -0800 Subject: OvmfPkg/AmdSev: add Grub Firmware Volume Package This is used to package up the grub bootloader into a firmware volume where it can be executed as a shell like the UEFI Shell. Grub itself is built as a minimal entity into a Fv and then added as a boot option. By default the UEFI shell isn't built but for debugging purposes it can be enabled and will then be presented as a boot option (This should never be allowed for secure boot in an external data centre but may be useful for local debugging). Finally all other boot options except grub and possibly the shell are stripped and the boot timeout forced to 0 so the system will not enter a setup menu and will only boot to grub. This is done by copying the Library/PlatformBootManagerLib into Library/PlatformBootManagerLibGrub and then customizing it. Boot failure is fatal to try to prevent secret theft. Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=3077 Signed-off-by: James Bottomley Message-Id: <20201130202819.3910-4-jejb@linux.ibm.com> Acked-by: Ard Biesheuvel [lersek@redhat.com: replace local variable initialization with assignment] Reviewed-by: Laszlo Ersek [lersek@redhat.com: squash 'OvmfPkg: add "gGrubFileGuid=Grub" to GuidCheck.IgnoreDuplicates', reviewed stand-alone by Phil (msgid ) and Ard (msgid <10aeda37-def6-d9a4-6e02-4c66c1492f57@arm.com>)] --- OvmfPkg/OvmfPkg.ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'OvmfPkg/OvmfPkg.ci.yaml') diff --git a/OvmfPkg/OvmfPkg.ci.yaml b/OvmfPkg/OvmfPkg.ci.yaml index 0d6a78ff5b..9326e6baa6 100644 --- a/OvmfPkg/OvmfPkg.ci.yaml +++ b/OvmfPkg/OvmfPkg.ci.yaml @@ -79,7 +79,7 @@ "IgnoreGuidName": ["ResetVector", "XenResetVector"], # Expected duplication for gEfiFirmwareVolumeTopFileGuid "IgnoreGuidValue": [], "IgnoreFoldersAndFiles": [], - "IgnoreDuplicates": [], + "IgnoreDuplicates": ["gGrubFileGuid=Grub"], }, ## options defined .pytool/Plugin/LibraryClassCheck -- cgit v1.2.3