Maze Linux supports UEFI Secure Boot on both the live ISO and the installed system. It uses a Microsoft-signed shim that chainloads a Maze-signed boot loader and kernel, with the Maze certificate enrolled once as a MOK (Machine Owner Key). Your existing factory and Windows keys are kept — you never have to put the firmware into Setup Mode.
firmware → shim (Microsoft-signed) → grubx64.efi (Maze-signed UKI: kernel + initramfs + cmdline)
There are two separate moments where you enroll the key, and each only has to be done once:
No password. Enrollment is protected by physical presence — you confirm it at the firmware-level MokManager screen on the next boot — so there is no Secure Boot password to set or remember.
The live ISO is signed at build time with the shared Maze ISO key. The first time you boot it with Secure Boot on, you enroll that key:
MAZE_EFI), then the file MOK.cer.Not sure what you are looking at? Every screen, in order:









Verify inside the live session:
mokutil --sb-state # → "SecureBoot enabled"
grubx64.efiis not GRUB. Maze does not use GRUB at all. Shim always chainloads a file with that exact name, so Maze installs its signed Unified Kernel Image under it. The UKI already contains the kernel, the initramfs and the kernel command line — which is why there is no boot menu and no bootloader config to edit.
If you would rather not enroll, just disable Secure Boot in firmware — the ISO boots normally either way.
The installer always sets up the signed boot chain — there is no option to turn it off. It:
grubx64.efi;/MOK.cer (and keeps
a copy at /var/lib/maze-secureboot/);
MOK.cervsMOK.crt— same key, two encodings.MOK.cer(DER) is the one you enroll in firmware;MOK.crt(PEM, in/var/lib/maze-secureboot/) is the one used for signing and bymaze-boot-check.
On the first reboot the new boot loader is not trusted yet, so MokManager appears again — the same screens as above. Enroll the machine's own key once:
MOK.cer.A copy of these instructions is written to the installed system at:
/var/lib/maze-secureboot/ENROLLMENT.txt
Verify after logging in:
mokutil --sb-state # → "SecureBoot enabled"
Nothing to do. The maze-secureboot package hooks into pacman and
kernel-install: after any transaction that touches a kernel, the initramfs,
NVIDIA/DKMS modules, mkinitcpio or systemd, the UKI is rebuilt and re-signed
(maze-sb-sign), and maze-boot-check verifies the whole chain as the last
step. Only UKIs that kernel-install itself just built are signed — anything
else found on the ESP is reported and left unsigned. Updates stay signed and the
machine keeps booting with Secure Boot on. You do not re-enroll after
updates — the key is already trusted.
If you believe your machine key (/var/lib/maze-secureboot/MOK.key) was
exposed, sudo maze-sb-rotate-key start replaces it in stages, one MokManager
confirmation and reboot per stage (continue to proceed, cancel to back out).
The old key is only removed after images signed with the new one have booted.
It never runs automatically.
Use writable OVMF code + vars copies so the enrolled key survives reboots:
cp /usr/share/edk2/x64/OVMF_CODE.secboot.4m.fd /tmp/code.fd
cp /usr/share/edk2/x64/OVMF_VARS.4m.fd /tmp/vars.fd
qemu-system-x86_64 -m 4096 -enable-kvm \
-machine q35,smm=on -global driver=cfi.pflash01,property=secure,value=on \
-drive if=pflash,format=raw,unit=0,file=/tmp/code.fd,readonly=on \
-drive if=pflash,format=raw,unit=1,file=/tmp/vars.fd \
-cdrom out/mazelinux-*.iso -boot d
After installing into the VM disk, boot without -cdrom and complete the
first-boot enrollment.
MokManager doesn't appear / it boots straight to "Verification failed" and stops. Your firmware may not be showing the prompt. Reboot once more; on most machines the shim shows the blue screen on the next attempt. Make sure Secure Boot is in normal User Mode, not disabled.
"Enroll key from disk" can't find MOK.cer. Pick the EFI system
partition volume (the small FAT partition), not the root filesystem. The file
is at the root of that partition.
System won't boot after a manual kernel change. Rebuild and re-sign from a working environment (the recovery kernel, or a live-ISO chroot):
sudo maze-boot-check --repair # rebuild + re-sign, then verify
sudo maze-sb-sign /boot # or just re-sign; the argument is the ESP mount point
After editing /etc/kernel/cmdline or mkinitcpio.conf, use
sudo maze-initramfs-rebuild — plain mkinitcpio -P does nothing on Maze.
Shim stopped working (SBAT/dbx revocation after a firmware update, or a corrupt copy on the ESP). The kernels and signed images are still fine, but every normal boot entry goes through shim, so turning Secure Boot off alone does not help. Since maze-secureboot 2.0.2 there are two extra firmware boot entries that start the kernel image directly, without shim:
To use them: open firmware setup → set Secure Boot to Disabled → open the firmware boot menu (F11 / F12 / Esc) → pick Maze Linux (no shim, Secure Boot off). While Secure Boot is on, the firmware refuses these entries and skips them; they sit at the end of the boot order, so they are never tried before the normal chain.
sudo maze-boot-check reports whether they exist (check 13). If they are
missing, add them with sudo maze-sb-sign.
Check what is signed:
sbverify --list /boot/EFI/BOOT/grubx64.efi # adjust path to your loader
mokutil --list-enrolled # confirm the Maze key is enrolled
Disable Secure Boot in your firmware setup. The installed system and the live ISO both boot normally with it off.
keys/secureboot/ of the MazeLinux profile (generated
once by tools/gen-sb-keys.sh; only the public certificate is committed).
build.sh patches mkarchiso so the ISO's ESP boots shim as the default
loader, with a Maze-signed UKI (built by ukify) as grubx64.efi, and drops
MOK.cer at the root of the ESP.maze-installer: steps/26-secureboot-function.sh), while the signer,
pacman hooks, kernel-install plugins, maze-boot-check and the boot guard
ship in the maze-secureboot package — so fixes reach installed
machines through pacman -Syu.maze-sb-sign takes the ESP mountpoint as an optional first argument;
the installer passes it explicitly because bootctl is unreliable inside the
install chroot.