From Fedora Project Wiki


grub-cc: GRUB EFI for Confidential Computing

Date 2026-10-19 to 2026-10-25
Time all day

Website QA/Test Days
Matrix #test-day:fedoraproject.org(other clients|?)
Mailing list test


Can't make the date?
If you come to this page after the test day is completed, your testing is still valuable, and you can use the information on this page to test, file any bugs you find, and add your results to the results section. If this page is more than a month old when you arrive here, please check the current schedule and see if a similar but more recent Test Day is planned or has already happened.

What to test?[edit]

There is a need for a smaller, lighter version of the GRUB bootloader on UEFI to support booting sealed bootable container images, such as for Confidential Computing.

Since confidential VMs rely on remote attestation, TPM String PCR values need to be stable and predictable over long periods of time. Updating the bootloader results in changes to PCRs, and should therefore be avoided if possible.

Additionally, Unified Kernel Images (UKIs) have become the preferred choice over the regular signed kernel because the whole payload is bundled and signed for Secure Boot, thus removing the vulnerability of the unsigned initramfs. They are used often in virtual environments, for confidential computing, and by CoreOS.

Taken together, the ideal bootloader for these types of environments should be small, light, and not get updated too often. The fewer modules are built-in, the smaller the attack surface, and the less frequent updates need to be.

The resulting idea has ended up in a new package called grub-cc which in practical terms, it is smaller version of GRUB, the supported bootloader in most Linux environments, for UEFI, built as a separate package from the main GRUB build, contaiing only the modules absolutely necessary for booting, and natively supporting UKI loading.

As any bootloader, this is an important piece of software in the boot process and we need your help to validate this new package.

Note that this new package is not meant to be a replacement for GRUB for general use; rather it's an additional package for specific applications, in particular Confidential Computing workloads.


Who's available[edit]

The following cast of characters will be available testing, workarounds, bug fixes, and general discussion:

You can chat with us on Matrix. See the infobox on top of the page to learn where to join.

Prerequisite for Test Day[edit]

  • A virtual machine or a bare metal machine
  • An installation of Fedora 45 (any Edition or Spin). Make sure to fully update your system.
    • If installing a fresh system, it's recommended to use the latest nightly image (alternative download locations: local mirror, master mirror).
    • Make sure you have no important data on that system. Things might go wrong -- don't do this on your production machine!

How to test?[edit]

The main idea is to boot a UKI using grub-cc which implies creating a UKI and a BLS entry files (and placing in the right folder), then installing a grub-cc and boot. Sounds simple but requires multiple steps as indicated below.

Create and Enroll Signing Keys[edit]

  • Install sign-related packages
dnf install -y pesign mokutil keyutils
  • Create the asymetric key pair
efikeygen -d /etc/pki/pesign -S -k -c 'CN=Your Name Key' -n 'Custom Secureboot'
certutil -d /etc/pki/pesign -L
certutil -d /etc/pki/pesign -n 'Custom Secureboot' -Lr > sb_cert.cer
  • Import it into mok
mokutil --import sb_cert.cer
  • Enroll it into the system
reboot # and enroll key

Create a UKI and BLS entry[edit]

  • Install the systemd-ukify package which contains the ukify command.

In case you have an UKI file you would like test/boot it, just omit the ukify step below but follow the rest of the steps. In theory, a good formatted UKI should be able to boot.

dnf install -y systemd-ukify
  • Create the (unsigned) kernel-*-UKI.efi binary file
ukify build \
--linux /usr/lib/modules/$(uname -r)/vmlinuz \
--initrd /boot/initramfs-$(uname -r).img \
--uname $(uname -r) \
--cmdline "@/proc/cmdline" \
--output kernel-$(uname -r)-UKI.unsigned.efi \
--profile "kernel $(uname -r) UKI (Fedora $(cat /etc/os-release | grep VERSION_ID | sed -e 's/VERSION_ID=//g'))"
ls -l kernel-$(uname -r)-UKI.unsigned.efi
ukify inspect kernel-$(uname -r)-UKI.unsigned.efi       
  • Sign the new UKI
pesign -s -c 'Custom Secureboot' -i kernel-$(uname -r)-UKI.unsigned.efi -o kernel-$(uname -r)-UKI.signed.efi
pesign -S -i kernel-$(uname -r)-UKI.signed.efi
  • Place the UKI into the corresponding ESP folder
mkdir -p /boot/efi/EFI/Linux/
cp kernel-$(uname -r)-UKI.signed.efi /boot/efi/EFI/Linux/kernel-$(uname -r)-UKI.efi
ll /boot/efi/EFI/Linux/
  • Create the a new BLS entry
mkdir -p /boot/efi/loader/entries
echo "title Fedora ukify UKI" > /boot/efi/loader/entries/kernel-ukify.conf
echo "efi /EFI/Linux/kernel-$(uname -r)-UKI.efi" >> /boot/efi/loader/entries/kernel-ukify.conf
cat /boot/efi/loader/entries/kernel-ukify.conf

Now you are all set to test grub-cc

Test grub-cc and reboot[edit]

  • Install the grub-cc package
dnf install -y grub-cc
rpm -ql grub-cc

grub-cc is not signed so lets' sign it with the new created keys

  • Sign the grub-cc package
pesign -s -c 'Custom Secureboot' -i $(rpm -ql grub-cc | grep grubx64.efi)  -o grubx64.signed.efi
  • Copy the signed grubx64.signed.efi image into the ESP folder
cp grubx64.signed.efi /boot/efi/EFI/fedora/grubx64.efi
  • Reboot

You should see the GRUB menu with entries for each of the UKIs that you installed. If you press 'e' to edit an entry, you should see something like chainloader /path/to/UKI and when you execute any of the entries, they should successfully boot.

Use the tpm2_pcrread command between reboots of different UKIs to see that the value of PCR8 does not change. Note that TPM PCR measurements are only available when SB is on.

Visit the results page and click on the column title links to see the tests that need to be run: most column titles are links to a specific test case. Follow the instructions there, then enter your results by clicking the ➕ (plus) button for that test case.

Please also try to experiment and explore and perform tasks not mentioned in any of the pre-defined test cases.

Reporting bugs[edit]

Perhaps you've found an already-reported bug. Please look at:

All new bugs should be reported into the FIXME upstream bug tracker. A less-preferred alternative is to file them into Red Hat Bugzilla, in most cases against the FIXME component.

We really need bug reports!
Please note that just mentioning your problem into the comments section on the results page is not very helpful. Very often those problems only happen in specific circumstances, or with specific steps taken. We need the logs and screenshots, and we need to be able to ask you followup questions. Please file bug reports, it's much more useful than a short comment. Thank you!

When filing the bug, it's very helpful to include:

  • exact steps you've performed (and whether you can reproduce it again)
  • screenshots or videos, if applicable
  • system journal (log), which you can retrieve by journalctl -b > journal.txt
  • all output in a terminal, if started from a terminal
  • your system description

If you are unsure about exactly how to file the report or what other information to include, just ask us.

Please make sure to link to the bug when submitting your test result, thanks!

Test cases[edit]

User Short system description, e.g. a desktop motherboard name, or laptop manufacturer + model name Fresh boot References
Jaroslav Groman Gigabyte J3455N-D3H, Celeron J34455, 16 GB RAM, Fedora 45 20261023.n.0
Pass pass
[1]
  1. ↑ Tested with grub-cc-1:1-2, kernel 7.2.11-300
Josue Hernandez KVM/QEMU VM, Fedora 45, UEFI + Secure Boot + TPM 2.0, 2 vCPU, 2 GB RAM 20 GB DISK
Pass pass
[1]
  1. ↑ Completed successfully, it showed the UKI in the menu entry after reboot and booted successfully
Leandro Abdallah KVM/QEMU VM, Fedora 45, UEFI + Secure Boot + TPM 2.0, 2 vCPU, 4 GB RAM 20 GB DISK
Pass pass
[1]
  1. ↑ Completed the grub-cc fresh boot test successfully. Created a UEFI VM with Secure Boot and TPM 2.0, enrolled custom signing keys via MOK, built and signed a Unified Kernel Image (UKI) with ukify/pesign, installed grub-cc, signed it, and replaced the default grubx64.efi. After reboot, the GRUB menu showed the UKI entry and the system booted successfully using grub-cc. No Secure Boot violations or unexpected behavior observed.
Nicolas Frayer F45 VM 2CPUs/4GB RAM/50GB HD
Pass pass
[1]
  1. ↑ Followed the instructions, UKI entry visible in grub menu and it boots fine.
Rénich Bon Ćirić (renich) QEMU 10.2.2 Q35 VM on Hetzner Cloud cpx42 (AMD EPYC-Genoa, 8 vCPU, 4 GB RAM, 20 GB Disk), Fedora 45 Cloud 20261023.n.0, UEFI (EDK II OVMF) + Secure Boot + TPM 2.0 (swtpm)
Pass pass
[1]
  1. ↑ [Transparency note: Test executed autonomously by Gemini via Google Antigravity under the direct supervision of Rénich Bon Ćirić (FAS: renich)]. Tested on Fedora 45 Cloud Edition (20261023.n.0) with kernel-core-7.2.11-300.fc45.x86_64, grub-cc-1:1-2.fc45.x86_64, systemd-ukify-262-3.fc45.noarch, pesign-116-9.fc45.x86_64, mokutil-2:0.7.2-7.fc45.x86_64, and tpm2-tools-5.8-1.fc45.x86_64. Generated a custom RSA-2048 signing certificate via efikeygen/certutil and enrolled it into MOK via mokutil and MokManager. Built and signed two UKIs with ukify and pesign using identical kernel/initrd payloads but distinct embedded .cmdline sections, placed them in /boot/efi/EFI/Linux/, and created corresponding BLS entries in /boot/efi/loader/entries/. Signed grub-cc (noting that /usr/lib/efi/grub-cc/1:1-2.fc45/EFI/fedora/grubx64.efi ships with a pre-existing 'Red Hat Test Certificate' in Authenticode slot 0, and pesign -s appends the custom MOK signature in slot 1, which shimx64.efi validates cleanly) and installed it to /boot/efi/EFI/fedora/grubx64.efi. Verified in the grub-cc menu editor ('e') that entries use 'chainloader ($root)/EFI/Linux/kernel-7.2.11-300.fc45.x86_64-UKI*.efi' driven by the embedded (memdisk)/grub2/grub.cfg ('set timeout=5' / 'blscfg'). Both signed UKIs booted cleanly with Secure Boot enabled. bootctl status confirmed 'Secure Boot: enabled (user)', 'TPM2 Support: yes', 'Measured UKI: yes', and 'Measured OS: yes' via systemd-stub 262-3.fc45. Across reboots between the two different UKIs, tpm2_pcrread sha256 confirmed SHA-256 PCR8 remained unchanged (0x0000...0000), while PCR4 (0x0D8984... -> 0xE82994...), PCR9 (0x289D31... -> 0x1647E1...), and PCR11 (0x73843D... -> 0xD17C59...) updated as expected.
Rénich Bon Ćirić (renich) Cherry Servers Bare-Metal Supermicro AS-2115GT-HNTR (AMD EPYC 9255 24C/48T Zen 5 Turin, SME/SEV-SNP/CCP 1022:156e, 192 GB DDR5, Dual 960 GB NVMe), Native Fedora 45 Cloud 20261023.n.0 (UEFI 2.90) + KVM/OVMF SecBoot + TPM 2.0
Pass pass
[1]
  1. ↑ [Transparency note: Second hardware run executed autonomously by Gemini via Google Antigravity under the direct supervision of Rénich Bon Ćirić (FAS: renich)]. Validated Fedora 45 Cloud Edition (20261023.n.0, kernel-core-7.2.11-300.fc45.x86_64, grub-cc-1:1-2.fc45.x86_64, systemd-ukify-262-3.fc45.noarch, pesign-116-9.fc45.x86_64, mokutil-2:0.7.2-7.fc45.x86_64, tpm2-tools-5.8-1.fc45.x86_64) on a Cherry Servers bare-metal Supermicro AS-2115GT-HNTR / H13SST-G server (AMD EPYC 9255 24C/48T Zen 5 Turin processor with hardware Confidential Computing capabilities SME, SEV, SEV-ES, SEV-SNP, VMPL, RMPQUERY in CPUID 0x8000001f and AMD Turin CCP/ASP 1022:156e) in two modes: (1) Native Bare-Metal UEFI 2.90 boot on /dev/nvme0n1: Installed Fedora 45 to the secondary NVMe drive, embedded Intel E810 DDP firmware (ice-1.3.43.0.pkg) and LACP 802.3ad bonding drivers into the initramfs, built and signed two UKIs (kernel-7.2.11-300.fc45.x86_64-UKI.efi and kernel-7.2.11-300.fc45.x86_64-UKI-alt.efi) with ukify and pesign, signed grub-cc (1:1-2.fc45), and booted the physical server via Boot0009 (\EFI\fedora\shimx64.efi -> grub-cc -> systemd-stub 262-3.fc45 -> Linux 7.2.11-300.fc45.x86_64). Verified live via bootctl status that GRUB 2.12 (grub-cc) chainloaded both UKIs on physical partition PARTUUID=3a62a530-78dc-420b-a79a-6153cc28f5ce. (2) Hardware-accelerated KVM (-accel kvm -cpu host) with OVMF Secure Boot + TPM 2.0 (swtpm) on the same EPYC 9255 host: Enrolled custom RSA-2048 MOK key via mokutil/MokManager, verified Secure Boot: enabled (user), Measured UKI: yes, Measured OS: yes, and confirmed across UKI reboots that SHA-256 PCR8 remained invariant (0x0000...0000) while PCR4 (0x1B9377... -> 0x4E855F...), PCR9 (0xFD3B03... -> 0xB8F029...), and PCR11 (0xEE0836... -> 0x99BA55...) updated as expected.
WQYeo KVM/QEMU Q35 VM, Fedora 45 KDE, UEFI + Secure Boot + TPM 2.0, 4 vCPU, 4 GB RAM, 40 GB disk;
Pass pass
[1]
  1. ↑ Completed the grub-cc fresh boot test successfully. Tested on kernel 7.2.11-300.fc45.x86_64 with grub-cc-1-2.fc45.x86_64. Enrolled a custom signing certificate using MOK, signed grub-cc, and built two signed UKI using the same kernel/initramfs, but with different embedded command lines. Both were booted successfully through grub-cc chainloader with secure boot on. SHA-256 PCR8 were unchanged between boots, while PCR11 changed and bootctl confirmed measured UKI/OS. No functional grub-cc failures are seen. Also, installed from Fedora-KDE-Desktop-Live-45-20261019.n.0.x86_64.iso, then updated (dnf upgrade) before running my tests.