-
-
Notifications
You must be signed in to change notification settings - Fork 62
Windows dual boot documentation? #427
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I think you only need to keep Microsoft keys and let systemd-boot know about Windows via the magic reboot into Windows option and that's it? You don't need to do anything and you must not boot Windows via systemd-boot otherwise you will mess your measurement path and if you are using anything like Bitlocker, this will trigger a recovery prompt on boot because the measurement path is incorrect. |
Well, reboot to windows works but I would really like to have an option to boot through systemd-boot menu. So, essentially, it's not possible at all?
But from what I can see, if I sign the uefi shell and boot through it, I only have to enter bitlocker key once. In any case, it would be good to have this documented. |
I'm not sure systemd-boot gives us easy way to do this and we will probably not support super advanced modifications that diverges too much from what systemd encourages.
If you are willing to send a documentation PR, we can take a look :). |
I'm know literally nothing about the subject. |
Which magic reboot into Windows option are you referring to? systemd-boot can't know about Windows if it's installed on another drive. However, in Secondly, to boot Windows this way, systemd-boot uses the edk2-uefi-shell still, which is not signed by lanzaboote by default. I'm pretty sure that's also what OP was originally trying to convey. I think these two issues are the crux of the problem. The thing is I'm actually a bit confused as to why some of this is happening. I can see there is a test where supposedly some settings are set in So, am I missing something in terms of getting certain settings from |
|
I got a dual boot fde with tpm key storage setup without the reboot flag on my hp laptop but I don't exactly remember how I achieved it 😊 I don't remember it being difficult though, and I can verify that I needed to enter the bitlocker key once or twice for the initial install. Sometimes you need to enter the key but you will always know what you did to cause it. |
Hey, I was able to get it working while having windows on a separate drive. The NixOS wiki explains how to set it up using edk2-uefi-shell. Lanzabnoote does not sign the boot file for it but I manually signed it by following this link from the arch wiki. I do not know if this will keep working with updates and how it will work with Bit Locker but at least it allows it to boot. Maybe it should be included into the guide or if edk2-uefi-shell is enabled lazaboote should also sign it. Whats your opinion? |
Yes, that can be done, though there is no way to do it declaratively. And, I believe, edk2-uefi-shell provides way too much to a potential attacker. |
Yea I agree but maybe it could be an option for people who want to as with systemdboot and windows on a separate drive I don't think there is a different option. At the very least maybe it can be included into the QuickStart guide how to sign it and say it has security risks. |
Hello good people! I'm setting up NixOS on Acer Orion Predator 7000, side by side with Windows 11 (dual boot). The motherboard is replaced with Asus PRIME Z790-P Wifi. The systems are installed on the same physical disc and the boot partition (ESP) is shared. I enabled LUKS on the NIXROOT partition and my next step was to get Secure Boot working. I got into a state where Lanzaboote is installed, the keys are enrolled and secure boot is activated....BUT! ...only login to Windows is working. When I'm booting into NixOS I get at message saying that the kernel hash is not matching. The steps I did:
Anybody know how I can get it to work? Please, reach out! I followed the documentation step by step, so I agree that documentation for this use case is needed. Here is my code changes: https://github.com/JHilmarch/nixos-config/pull/18/files
|
It seems like it's currently impossible to configure a host for dual-boot in declarative manner.
Maybe I'm wrong, but from what I can see one has to manually sign the ed2k shell and add a regular entry through
boot.loader.systemd-boot.windows
.It would be awesome to have some blessed approach to dual boot described in the docs.
The text was updated successfully, but these errors were encountered: