Setting Up Secure Boot
Only follow this guide if you need Secure Boot enabled.
Prepare GRUB
sudo grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=pond --modules="tpm" --disable-shim-locksudo cp /boot/efi/EFI/pond/grubx64.efi /boot/efi/EFI/BOOT/BOOTX64.EFIEnter Setup Mode
Restart into your BIOS. You can do so with this command on motherboards that support it.
systemctl reboot --firmware-setupOnce we’re in, we need to enter setup mode. Most boards have a “Reset to Setup Mode” option.
- Gigabyte: confirm the reset, then reject the “reset without saving” dialog that follows.
If your board doesn’t have a “Reset to Setup Mode” option:
- ASUS: Boot → Secure Boot, set Secure Boot Mode to Custom, then open Key Management and select “Delete all Secure Boot Variables”.
- MSI: set Secure Boot Mode to Custom and select the “maximum security” compatibility option. In Key Management, set “Provision Factory Default keys” to Disabled, then select “Delete all Secure Boot variables”.
Then save, exit back into Pond, and go to step 3.
Install sbctl
sudo pacman -S sbctlsudo sbctl statusExpected output:
Setup Mode: ✗ Enabled Secure Boot: ✗ Disabled
Create and enroll keys
Create your custom Secure Boot keys:
sudo sbctl create-keysEnroll your keys with Microsoft’s and the OEM firmware’s built-in keys:
sudo sbctl enroll-keys --microsoft --firmware-builtin- ASUS / Gigabyte: use only
--microsoft:If you accidentally ran the command withsudo sbctl enroll-keys --microsoft--firmware-builtinon an ASUS or Gigabyte board, go back to step 2.
Check that the keys are enrolled and Setup Mode is disabled:
sudo sbctl statusExpected output:
Setup Mode: ✓ Disabled Secure Boot: ✗ Disabled Vendor Keys: microsoft
You might see more vendor keys than
microsoft. That is okay.
If Setup Mode shows Enabled: temporarily disable Secure Boot in firmware, boot back, and check status again.- ASUS / Gigabyte: use only
Sign
sudo sbctl verifysudo sbctl-batch-signsudo sbctl verifyExpected output: everything outside
EFI/Microsoftshows✓.Enable Secure Boot
Reboot into UEFI settings and enable Secure Boot.
- ASUS: Boot → Secure Boot, OS Type → Windows UEFI Mode, Secure Boot Mode → Custom. “Other OS” disables Secure Boot.
Check
sudo sbctl statusExpected output:
Setup Mode: ✓ Disabled Secure Boot: ✓ Enabled Vendor Keys: microsoft
Having more vendor keys than
microsoftis fine. sbctl’s pacman hook re-signs files on kernel and boot manager updates.