diff options
author | aszlig <aszlig@redmoonstudios.org> | 2017-04-25 07:48:54 +0200 |
---|---|---|
committer | aszlig <aszlig@redmoonstudios.org> | 2017-04-25 08:50:43 +0200 |
commit | 72f2b506c73acbdfc15a076acefc793486d9683e (patch) | |
tree | 195dd515467b60ea6644f534ec4f1a21e07b8304 /nixos/modules/system/boot/loader/grub/grub.nix | |
parent | bd47d042949711a16935f71df71ce29ff1c496a7 (diff) | |
download | nixlib-72f2b506c73acbdfc15a076acefc793486d9683e.tar nixlib-72f2b506c73acbdfc15a076acefc793486d9683e.tar.gz nixlib-72f2b506c73acbdfc15a076acefc793486d9683e.tar.bz2 nixlib-72f2b506c73acbdfc15a076acefc793486d9683e.tar.lz nixlib-72f2b506c73acbdfc15a076acefc793486d9683e.tar.xz nixlib-72f2b506c73acbdfc15a076acefc793486d9683e.tar.zst nixlib-72f2b506c73acbdfc15a076acefc793486d9683e.zip |
nixos/grub: Add another example for extraEntries
Someone on IRC wanted to boot Fedora from another disk. While I'm not too familiar with UEFI booting in conjunction with GRUB2 it took some time to get it to work. So in order to safe others from frustration I'm adding this as another example to the extraEntries option. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Diffstat (limited to 'nixos/modules/system/boot/loader/grub/grub.nix')
-rw-r--r-- | nixos/modules/system/boot/loader/grub/grub.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/nixos/modules/system/boot/loader/grub/grub.nix b/nixos/modules/system/boot/loader/grub/grub.nix index 2d6bf2d58a9e..cf47aed9fa99 100644 --- a/nixos/modules/system/boot/loader/grub/grub.nix +++ b/nixos/modules/system/boot/loader/grub/grub.nix @@ -239,6 +239,12 @@ in menuentry "Windows 7" { chainloader (hd0,4)+1 } + + # GRUB 2 with UEFI example, chainloading another distro + menuentry "Fedora" { + set root=(hd1,1) + chainloader /efi/fedora/grubx64.efi + } ''; description = '' Any additional entries you want added to the GRUB boot menu. |