maximbaz / arch-secure-boot

UEFI Secure Boot for Arch Linux + btrfs snapshot recovery
ISC License
126 stars 8 forks source link

Dual boot system with windows #8

Closed skbolton closed 2 years ago

skbolton commented 2 years ago

Thanks for creating this resource I am seriously excited to possibly drop a lot of grub cruft I have been dealing with. My one issue that I am wondering if you have experience with is a system that also boots into windows. This style of booting from uefi directly is new to me and I am wondering how this would work. Does the windows side just work by creating its own uefi entry and there is no overlap, or would I have to get the same private key generated from scripts embedded into the windows filesystem somehow?

if you aren’t familiar with this then no worries, just seeing if it’s possible to know about this before diving in.

maximbaz commented 2 years ago

Hello, glad you found this interesting!

I did have to install Windows as dual-boot a few times for some short experiments, always used UEFI method, Windows will just add its entry and that's it.

However you are right to suspect issues with Secure Boot - I dont know if it's possible to force Windows to use our own keypair, since I didn't need it for long I just disabled Secure Boot when I needed to boot into Windows.

Alternatively you should look into this approach: https://wiki.archlinux.org/title/Unified_Extensible_Firmware_Interface/Secure_Boot#Using_a_signed_boot_loader

I don't particularly like the approach, as earlier in that same wiki page they mention a downside when using manufacturer's key:

Default manufacturer/third party keys aren't in use, as they have been shown to weaken the security model of Secure Boot by a great margin[3]

But I guess it's better than disabling Secure Boot altogether :)

skbolton commented 2 years ago

Okay sounds good that’s enough for me to dive in and give it a try. Happy to hear that It goes through its own entry and I was hoping to not have to share the private key to the windows system. If I learn anything interesting about the process I’ll report back here for others.

5ouls3dge commented 7 months ago

@skbolton what did you learn? Did you find a working list of steps? best to install windows first? delete windows keys or use them?

skbolton commented 7 months ago

I never attempted as shortly after getting this system up and running I switched to nixos.