Setting Up Secure Boot

Only follow this guide if you need Secure Boot enabled.

  1. 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.EFI
  2. Enter Setup Mode

    Restart into your BIOS. You can do so with this command on motherboards that support it.

    systemctl reboot --firmware-setup

    Once 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.

  3. Install sbctl

    sudo pacman -S sbctlsudo sbctl status

    Expected output:

    Setup Mode:	✗ Enabled
    Secure Boot:	✗ Disabled
  4. Create and enroll keys

    Create your custom Secure Boot keys:

    sudo sbctl create-keys

    Enroll 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:
      sudo sbctl enroll-keys --microsoft
      If you accidentally ran the command with --firmware-builtin on an ASUS or Gigabyte board, go back to step 2.

    Check that the keys are enrolled and Setup Mode is disabled:

    sudo sbctl status

    Expected 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.

  5. Sign

    sudo sbctl verifysudo sbctl-batch-signsudo sbctl verify

    Expected output: everything outside EFI/Microsoft shows ✓.

  6. 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.
  7. Check

    sudo sbctl status

    Expected output:

    Setup Mode:	✓ Disabled
    Secure Boot:	✓ Enabled
    Vendor Keys:	microsoft

    Having more vendor keys than microsoft is fine. sbctl’s pacman hook re-signs files on kernel and boot manager updates.

Butterfly Interaction, Inc.