Skip to content

Secure Boot

Limine/SecureBoot Enabler (xsb-gui) switches an installed XeroLinux system from GRUB to Limine, then turns on Secure Boot, so every file your computer starts is verified before it runs. No terminal needed: a wizard walks you through it.

xsb-gui demo

1. Prepareback up, SB off2. Run 1GRUB ➔ Limine3. Rebootboot into Limine4. Setup Modeclear keys in firmware5. Run 2enroll keys + sign6. DoneSB on in BIOS▶▶▶▶▶
  1. Get ready. Back up your data, turn Secure Boot off in your BIOS/UEFI settings, and have your disk passphrase (and your Windows BitLocker recovery key, if you dual boot) at hand.

  2. Install and open the tool.

    Terminal window
    sudo pacman -S xsb-gui

    Then open Limine/SecureBoot Enabler from your app menu.

  3. Run 1: switch to Limine. Tick “I understand”, press Next, answer any popups, and let it work. Reboot when it says so.

  4. Clear your firmware keys. Reboot into your BIOS/UEFI settings and put Secure Boot in Setup Mode (“Clear Secure Boot keys”, “Delete all keys” or “Reset to Setup Mode”, depending on your board). Boot back into XeroLinux.

  5. Run 2: turn on Secure Boot. Open the tool again. It sees Limine is already there and goes straight to Secure Boot setup.

  6. Switch it on. Press Reboot to BIOS, turn Secure Boot on, save and exit. Done!


  • Moves you from GRUB to Limine. Limine comes from its own Arch packages (limine, limine-mkinitcpio-hook), so it updates itself with the rest of your system.
  • Keeps GRUB until Limine is proven to work. GRUB is only removed after Limine is installed, registered in your firmware, and has a working boot entry.
  • Turns on real Secure Boot. Limine’s settings are locked with a checksum, so nobody can swap your kernel or edit your boot menu without Limine refusing to start.
  • Supports Btrfs + Snapper. Snapshots show up in the Limine boot menu after the switch.
  • Supports nVidia systems. Your nVidia settings carry over; EFI space is checked.
  • Keeps dual boot working. Windows and other Linux installs get their own Limine menu entry.
  • Uses the current Microsoft certificates. Both the 2011 and 2023 Microsoft certificates are enrolled.

  • An installed XeroLinux system (FOSS or nVidia edition) currently booting with GRUB.
  • UEFI mode, GPT partition table (every XeroLinux install is).
  • Enough free space on your EFI partition. The tool checks this before changing anything.
  • Chaotic-AUR enabled (default on XeroLinux). Btrfs snapshot support needs limine-snapper-sync from there.
  • An internet connection to install packages.

  • Back up your data.
  • Update your system and reboot once for a clean state.
  • Turn Secure Boot off in BIOS/UEFI.
  • Encrypted drive? Know your disk passphrase. See Encrypted drives.
  • Dual boot with Windows? Save your BitLocker recovery key: aka.ms/myrecoverykey.
  • Close other package managers (pamac, Octopi, pacman in a terminal).

The tool installs limine-snapper-sync (adds a Snapshots section to the Limine menu), removes grub-btrfs, and takes a fresh snapshot called “After Limine migration”. Snapshots taken before the switch cannot appear in the Limine menu and are risky to roll back to - only post-switch snapshots work normally. A popup explains this before anything changes; you must tick “I understand” to continue. You can optionally delete old snapshots to free EFI space.

Restore a snapshot with limine-snapper-restore or by booting it from the menu. On nVidia systems with an EFI partition under 4 GiB, the menu is limited to the 3 most recent snapshots (configure in /etc/limine-snapper-sync.conf).

XeroLinux encrypted installs use a hidden key file inside the boot image so GRUB only asks once. With Limine that image is on the unencrypted EFI partition, so the tool removes the key file. It asks for your passphrase first - if wrong, nothing changes. From then on you type your passphrase once at every boot. If /home also uses that key file, it stays on the encrypted root and is only removed from the boot image.

All nVidia settings (nvidia-drm.modeset=1, modprobe.blacklist=nouveau, etc.) carry over unchanged. Boot files are large, so the tool checks EFI space first. Boot Diagnostics warns if nvidia-drm.modeset=1 ever goes missing.

Windows and shim-based distros (Ubuntu, Fedora, openSUSE) keep working with Secure Boot on. Plain-GRUB distros (no shim) will not boot once Secure Boot is on - the tool warns you beforehand. When Secure Boot keys change, BitLocker asks for your recovery key once; have it ready before Run 2.


SECURE BOOT VERIFICATION CHAINUEFI Firmwarechecks sig onlimine_x64.efiLiminechecks BLAKE2B hash onkernel + initramfsKernelstarts normally(not signed)fwupdalso signed(firmware updates)Systembootsverified▶▶▶▶your key (sbctl)config hash baked inWindows files: untouchedyour key (sbctl)Microsoft 2011 + 2023 certificates also enrolled so Windows, GPU firmware and shim-based distros keep working

What gets signed with your key: only limine_x64.efi and fwupd. Kernels are not signed - Limine checks them by checksum (BLAKE2B hash baked into the signed binary). Windows and other OS files are never touched.

Microsoft certificates (2011 and 2023): both are enrolled via sbctl enroll-keys -m. The 2011 certs cover existing Windows and most GPU firmware. The 2023 certs cover newer Windows boot managers and Linux shims. Firmware does not check expiry dates so the 2011 certs keep working despite being expired. After enrolling, the tool verifies the 2023 certs are actually present before locking anything.

Config lock: the checksum of limine.conf is baked into the signed Limine binary. Editing it by hand breaks boot.


ButtonWhat it does
Check SecureBoot StatusShows whether Secure Boot is on, whether your firmware is in Setup Mode, and whether the keys are yours.
Boot DiagnosticsLooks for problems: missing files, boot entries, leftover key files, missing nVidia settings. Changes nothing.
Clean up ESPRemoves leftover kernels and old bootloader files from the EFI partition. Preview shown first.
Reset KeysDeletes the Secure Boot keys this tool created. Firmware is not changed - clear its keys in BIOS/UEFI too. Refuses while Secure Boot is on.
Repair LimineReinstalls, re-registers Limine, rebuilds boot entries. Also upgrades older tool installs. Preview shown first.

“Secure Boot is already enabled in firmware” - Turn Secure Boot off in BIOS/UEFI, then run the tool again.

“Secure Boot keys are already enrolled in firmware, but not by this tool” - Clear all Secure Boot keys in firmware (Setup Mode), then run Secure Boot setup again.

“Microsoft 2023 certificates are missing from your firmware” - Clear keys in firmware, run sudo /usr/lib/xsb-gui/xsb-helper reset-keys, run Secure Boot setup again. If it repeats, update your motherboard firmware.

“Boot your normal system first” - You booted from a snapshot. Reboot into your normal system.

“Another package operation is running” - Close pamac/Octopi/pacman, then try again. If nothing is running, reboot (stale lock file).

“Not enough free space on the EFI partition” - Use Clean up ESP, remove unused kernels, or enlarge the partition.

Wrong passphrase rejected - Nothing changed. Check keyboard layout (boot prompt may use US layout).

Old snapshots not in the boot menu - Expected. Only post-switch snapshots appear.

Another Linux stopped booting after Secure Boot on - It uses plain GRUB without shim. Turn Secure Boot off to boot it, or reinstall that distro with shim.

Black screen after Secure Boot on - Turn Secure Boot off, run Boot Diagnostics. Usually means firmware rejected key enrollment - clear keys and redo Secure Boot setup.

Something failed during the switch - GRUB stays in place until the very last step, so your system still boots. Use Save Detailed Log… and share it when asking for help.


MANUAL FLOW1. sbctlcreate-keys2. limineenroll-config3. sbctl signEFI files4. enroll-keys -mMS certs included5. Enable SBin BIOS/UEFI6. Verifysbctl status▶▶▶▶▶

For users who already have Limine installed and want to enable Secure Boot from the terminal. Pick the scenario that matches your setup.


Scenario 1: Standard install (no LUKS, no Btrfs, single OS)

Section titled “Scenario 1: Standard install (no LUKS, no Btrfs, single OS)”

Prerequisites: Limine already installed and booting. Secure Boot off. Firmware in Setup Mode.

Step 1 - Install sbctl (0.18 or newer):

Terminal window
sudo pacman -S sbctl

Step 2 - Verify Setup Mode:

Terminal window
sbctl status

Must show Setup Mode: Enabled. If Disabled, clear keys in firmware first.

Step 3 - Create your keys:

Terminal window
sudo sbctl create-keys

Step 4 - Lock the Limine config (must happen before signing):

Terminal window
sudo limine enroll-config

This bakes a checksum of limine.conf into the Limine EFI binary. Any later change to the config, kernel or initramfs requires repeating this step and re-signing.

Step 5 - Sign EFI files:

Terminal window
sudo sbctl sign -s /boot/EFI/BOOT/BOOTX64.EFI
sudo sbctl sign -s /boot/EFI/limine/limine_x64.efi
sudo sbctl verify

The -s flag saves each path so it is re-signed automatically on future Limine package updates. Sign everything sbctl verify lists as unsigned.

Step 6 - Enroll keys with Microsoft certificates:

Terminal window
sudo sbctl enroll-keys -m

The -m flag is required. Without it Windows will not boot and some machines will not POST. This enrolls both the 2011 and 2023 Microsoft certificates.

Step 7 - Enable Secure Boot in BIOS/UEFI and confirm:

Reboot into firmware, turn Secure Boot on, save and exit, then boot back into XeroLinux.

Terminal window
sbctl status

Must show Secure Boot: Enabled and Vendor Keys: none (or microsoft).


XeroLinux encrypted installs use a hidden key file inside the initramfs so GRUB only asks for your passphrase once. With Limine the initramfs lives on the unencrypted EFI partition, exposing that key file. You must remove it first.

Step 1 - Find the key file slot:

Terminal window
sudo cryptsetup luksDump /dev/YOUR_ROOT_PARTITION | grep -A2 "Keyslot"

Identify which slot belongs to the key file (usually slot 1; slot 0 is your passphrase).

Step 2 - Remove the key file from the initramfs and from LUKS:

Terminal window
sudo mkinitcpio -P

Then remove the key file slot (replace 1 with the actual slot number):

Terminal window
sudo cryptsetup luksKillSlot /dev/YOUR_ROOT_PARTITION 1

Confirm with your passphrase when prompted. If the passphrase is wrong, nothing changes.

Step 3 - Rebuild the initramfs without the key file:

Terminal window
sudo mkinitcpio -P

Step 4 - Follow Scenario 1 steps 1-7 completely.

From this point your system will ask for your passphrase once at every boot before XeroLinux starts.


Limine uses a different snapshot integration than GRUB. The grub-btrfs package must be replaced with limine-snapper-sync.

Step 1 - Install the Limine snapshot integration:

Terminal window
sudo pacman -S limine-snapper-sync

Step 2 - Remove grub-btrfs:

Terminal window
sudo pacman -R grub-btrfs
sudo systemctl disable --now grub-btrfsd.service

Step 3 - Enable the Limine snapshot sync service:

Terminal window
sudo systemctl enable --now limine-snapper-sync.timer

Step 4 - Take a snapshot before proceeding:

Terminal window
sudo snapper -c root create --description "Before Secure Boot setup"

Step 5 - Follow Scenario 1 steps 1-7 completely.

After the switch, new snapshots will appear in the Limine boot menu automatically. Old pre-switch snapshots will not appear and are risky to restore from (GRUB-era kernel files).


Step 1 - Locate the Windows boot manager:

Terminal window
ls /boot/EFI/Microsoft/Boot/

The file you need is bootmgfw.efi in that directory.

Step 2 - Verify Limine has a Windows entry in its config:

Terminal window
cat /boot/efi/limine.conf | grep -A3 -i windows

If there is no Windows entry, add one to /etc/default/limine:

/efi=\EFI\Microsoft\Boot\bootmgfw.efi
comment=Windows Boot Manager

Then run sudo limine-update.

Step 3 - Follow Scenario 1 steps 1-7 completely.

The -m flag in sbctl enroll-keys -m is what keeps Windows bootable - it enrolls the Microsoft certificates your Windows boot manager is signed with. Never skip it.

Step 4 - Test both OSes before finishing.

Boot Windows once to confirm it works (entering the BitLocker recovery key if prompted). Then reboot into XeroLinux and confirm Secure Boot is on.


nVidia’s kernel modules may be refused by a kernel with lockdown active. First check whether your kernel enforces lockdown:

Step 1 - Check lockdown state:

Terminal window
cat /sys/kernel/security/lockdown
  • none - modules load normally. No extra steps needed. Continue with Scenario 1.
  • integrity or confidentiality - unsigned modules are refused. The nVidia modules must be signed before enabling Secure Boot.

Step 2 (only if lockdown is not none) - Sign the nVidia modules:

Terminal window
sudo sbctl sign-all

Or sign the specific module files:

Terminal window
find /usr/lib/modules -name "nvidia*.ko*" | while read f; do
sudo sbctl sign "$f"
done

Step 3 - Ensure nVidia settings carry over to Limine:

Terminal window
grep "nvidia" /etc/default/limine

The kernel parameters nvidia-drm.modeset=1 and modprobe.blacklist=nouveau must be present. If missing, add them to the KERNEL_PARAMS line in /etc/default/limine, then run sudo limine-update.

Step 4 - Check EFI partition space. nVidia boot images are large:

Terminal window
df -h /boot/efi

Need at least 300-400 MB free before signing and enrolling.

Step 5 - Follow Scenario 1 steps 1-7 completely.

After boot, verify modules load:

Terminal window
lsmod | grep nvidia

The wizard runs everything through one helper, which you can also call directly:

Terminal window
sudo /usr/lib/xsb-gui/xsb-helper <command> [--dry-run]
CommandWhat it does
preflightRuns all system checks. Changes nothing.
migrateSwitches from GRUB to Limine. Options: --delete-old-snapshots, --luks-passphrase-stdin.
enable-securebootCreates and adds keys, locks Limine’s settings, signs Limine.
repair-limineRepairs or upgrades an existing Limine setup. Option: --luks-passphrase-stdin.
cleanupFrees space on the EFI partition.
doctorRuns Boot Diagnostics.
statusShows bootloader and Secure Boot state.
reset-keysClears the local sbctl keys (never touches firmware). Refuses while Secure Boot is on.
apply-splashApplies the XeroLinux boot menu wallpaper.

--dry-run shows what would happen without changing anything.

PathPurpose
/etc/default/limineLimine settings: EFI path, kernel command line, fallback, settings lock. Edit this, then run sudo limine-update.
/boot/efi/limine.confThe generated boot menu. Do not edit by hand when Secure Boot is on.
/boot/efi/EFI/limine/limine_x64.efiLimine itself (signed once Secure Boot is set up).
/boot/efi/EFI/BOOT/BOOTX64.EFIBackup copy of Limine, for firmware that forgets its boot entries.
/etc/limine-snapper-sync.confSnapshot boot menu settings.
/etc/mkinitcpio.conf.xsb.bakYour mkinitcpio settings from before the switch (Btrfs only).