Replies: 2 comments 1 reply
-
This worked smoothly for me, thank you!🎉
|
Beta Was this translation helpful? Give feedback.
-
having some trouble at step 8. when i enroll the keys, it doesn't show what is expected and instead shows this:
instead of the platform, database, and exchange keys being enrolled, and when i run Additionally, when i run status it says that sbctl was installed but it still shows the setup mode as being enabled as well. I even tried deleting keys from bios and reinstalling omarchy but still getting the same issue. This is on an Asus ProArt x670e motherboard by the way. Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Omarchy Secure Boot Setup Guide
A comprehensive guide for enabling Secure Boot with custom keys on Omarchy Linux distribution while maintaining dual-boot compatibility with Windows.
Table of Contents
Introduction
Secure Boot is a UEFI firmware security standard that helps protect your system from malicious bootloaders and unauthorized operating system modifications. By default, most systems come with Microsoft's Secure Boot keys, which only allow Windows and certain approved Linux distributions to boot.
This guide will walk you through the process of setting up custom Secure Boot keys for Omarchy, allowing you to maintain system security while running your preferred Linux distribution alongside Windows.
What This Guide Accomplishes
Why Custom Keys?
Prerequisites
System Requirements
Required Tools
The following tools will be used and/or installed during the process:
sbctl
- Secure Boot key management utilitylimine
- Modern UEFI bootloader (should already be installed with Omarchy)Hardware Considerations
Important Safety Notes
Before You Begin
Step-by-Step Instructions
Phase 1: Preparation and Initial Setup
Step 1: Disable Secure Boot (Should already be disabled if you have Omarchy installed with Limine - the default bootloader)
Step 2: Install Omarchy (If not already 😊)
Step 3: Configure Dual-Boot
Phase 2: Secure Boot Key Management
Step 4: Prepare UEFI for Custom Keys
Step 5: Install Secure Boot Management Tools
Step 6: Verify Setup Mode
Secure Boot: Disabled
Setup Mode: Enabled
Step 7: Create Custom Keys
/usr/share/secureboot/keys/
Expected Output:
Step 8: Enroll Keys
Enroll your custom keys into the UEFI firmware:
Expected Output:
Step 9: Verify Key Enrollment
Phase 3: Configure System for Secure Boot
Step 10: Update Initial RAM Disk Configuration
Edit the mkinitcpio configuration:
Locate the HOOKS line
Add "btrfs-overlayfs" to the HOOKS array
Before:
After:
Save and exit (ESC, then
:wq!
)Step 11: Rebuild Boot Configuration
Expected Output:
Phase 4: Final Configuration and Testing
Step 12: Enable Secure Boot
Step 13: Test Boot Process
Verification
Confirming Secure Boot is Active
Once your system is running, verify Secure Boot is working:
In Omarchy:
Should show:
Secure Boot: Enabled
In Windows (if dual-booting):
What to Expect
sbctl status
shows Secure Boot as enabledTroubleshooting
Common Issues and Solutions
System Won't Boot After Enabling Secure Boot
Symptoms: Black screen, boot failure, or "Secure Boot Violation" error
Solutions:
sudo sbctl status
and verify keys are properly enrolledsudo limine-mkinitcpio
againWindows No Longer Boots
Symptoms: Windows option missing from boot menu or fails to start
Solutions:
-m
flag when enrolling keys"Setup Mode: Disabled" But No Custom Keys
Symptoms: sbctl status shows no custom keys but Setup Mode is disabled
Solutions:
Kernel Update Breaks Boot
Symptoms: System won't boot after kernel updates
Solutions:
Error Messages and Their Meanings
sbctl create-keys
-m
flagRecovery Procedures
Complete Recovery (If Nothing Works)
Partial Recovery (Secure Boot Issues Only)
Additional Resources
Useful Commands Reference
Related Documentation
Community Support
Security Considerations
Why This Approach is Secure
Maintaining Security
sbctl status
to ensure everything remains properly configuredPerformance Impact
Conclusion
Congratulations! You now have a fully functional Secure Boot setup with Omarchy that maintains Windows compatibility. Your system is more secure against bootkits and other boot-time malware while preserving the flexibility of a dual-boot configuration.
Remember to:
Guide Version: 1.0
Last Updated: October 2025
Author:@borgox
This guide is provided as-is for educational and security purposes. Always maintain proper backups and test procedures in a safe environment when possible.
Beta Was this translation helpful? Give feedback.
All reactions