Skip to content
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

Option to add extra entries to systemd-boot #21534

Closed
langston-barrett opened this issue Dec 30, 2016 · 8 comments
Closed

Option to add extra entries to systemd-boot #21534

langston-barrett opened this issue Dec 30, 2016 · 8 comments

Comments

@langston-barrett
Copy link
Contributor

Issue description

While the GRUB bootloader has the boot.loader.grub.extraEntries and boot.loader.grub.extraConfig options, there is nothing similar under boot.loader.systemd-boot.

I have another distro on a second partition, is there a workaround for configuring systemd-boot to see it?

Steps to reproduce

n/a

Technical details

System: 17.03pre97896.d15c62a
Nix version: 1.11.4
Nixpkgs version: 17.03pre97896.d15c62a
@langston-barrett
Copy link
Contributor Author

Perhaps this is out-of-scope? Configuration of /boot might not be in the same wheelhouse as /etc?

@lheckemann
Copy link
Member

lheckemann commented Jan 9, 2017

Yeah, I think NixOS leaves boot entries it didn't create itself alone. At least this is the case for me — my Debian boot entries appear in the NixOS-installed systemd-boot.

As the other OS isn't really part of NixOS's declarative configuration, I think it makes sense to leave it out.

@langston-barrett
Copy link
Contributor Author

@lheckemann Thanks for the feedback! I'll close this as off-topic.

@michelk
Copy link
Contributor

michelk commented Sep 15, 2017

Did you manage to see the other distro?

@lheckemann
Copy link
Member

@michelk if you have the EFI system partition mounted correctly in the other distro and install systemd-boot in it, it should in principle just add the entries which will then be detected by nixos's systemd-boot (or nixos's entires will be detected by the other distro's systemd-boot).

@michelk
Copy link
Contributor

michelk commented Sep 15, 2017 via email

@lheckemann
Copy link
Member

Sorry, didn't realise systemd-boot was not in debian. It used to have gummiboot (which is what systemd-boot was called before it moved into systemd) but apparently doesn't support systemd-boot yet. I'd say your best bet is to chainload debian's grub in that case — add something like /boot/loader/entries/debian.conf, with contents like

title Debian
efi /efi/debian/grubx64.efi

@michelk
Copy link
Contributor

michelk commented Sep 15, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants