-
-
Notifications
You must be signed in to change notification settings - Fork 44
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
XBOOTLDR support #173
Comments
From a quick skim, I guess that most places where esp_paths is propagated to/through Installer, a similar variable, |
Ope, maybe I'm wrong, this looks like a lot of paths... hm. lanzaboote/rust/tool/src/esp.rs Line 23 in adc0188
|
Just to illuminate this quickly for anyone unfamiliar with it:
|
(A small note, the Windows default ESP now seems to be about 100MB, making this more important for such systems) |
last update: for now this works for me:
otherwise things went well according to the quickstart! thanks! |
Is there any action we should do to your opinion to enable better support of XBOOTLDR? |
@RaitoBezarius I'm not really sure! I think, generally, NixOS should make this pattern easier to achieve, and as far as I know, it's basically just not supported (without my PR for systemd-boot anyway). And thus similarly lanzaboot. Personally, I would prefer lanzaboot to not require me to (manually) set up bind mounts, when they're really only here to workaround what feels like a feature deficit in Lanzaboot. I do feel like the "right" solution is for Lanzaboot to internally have a concept of "payloadPath" (maybe, rather than So, in my opinion, ideally I'd be able to remove the bind mount and then set |
cc @nikstur I don't really like And then, we could have |
I haven't fully had a chance to grok what is "in scope" of bootspec, vs extensions, vs left up to the "installer", so I can't offer an opinion. But I do like the last sentence, anyway. I do think I'm a bit nervous about what I'd argue is core functionality in extensions, but I also haven't had a chance to wrap my head around extensions, how they work, if there's a graduation path for them, etc. Personally, I think most tools around bootloaders make some invalid assumptions that everything goes into the ESP (see, nixpkgs/lanzaboot having the ability to configure the ESP path, but not the path for installing payloads). This isn't true with xbootldr, and I'd argue, it's "cleaner" this way too. I like my ESP just containing the bootloader and then the /boot partition containing the actual payloads. |
Note that NixOS/nixpkgs#285401 has finally been merged. |
Note: the PR to support xbootldr partition has been accepted into nixpkgs, it's available as a option. |
As far as I can tell, there's no option to tell Lanzaboot to install the bootloader entries to
/boot
, with the bootloader itself residing on/efi
.This is necessary for systems that are dual-boot and have to deal with Windows anemic 512MB ESP.
This is something I implemented for systemd-boot in : NixOS/nixpkgs#226692
The text was updated successfully, but these errors were encountered: