From ff84facca3508e263048ec2d3171e4db5d06f3d6 Mon Sep 17 00:00:00 2001 From: aszlig Date: Mon, 8 Jul 2013 01:44:48 +0200 Subject: [PATCH] grub: Add mdadm to search path. Grub uses mdadm to find out the device it is on, especially when mdadm itself resides in a separate boot partition. When bootstrapping from a NixOS installation CD, it's not a big issue because usually the paths from the Nix store of the installation CD are matching with the ones in the chrooted environment. Signed-off-by: aszlig --- modules/system/boot/loader/grub/grub.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/system/boot/loader/grub/grub.nix b/modules/system/boot/loader/grub/grub.nix index 1552d2cb102..4208465d590 100644 --- a/modules/system/boot/loader/grub/grub.nix +++ b/modules/system/boot/loader/grub/grub.nix @@ -26,7 +26,11 @@ let version extraConfig extraPerEntryConfig extraEntries extraEntriesBeforeNixOS extraPrepareConfig configurationLimit copyKernels timeout default devices; - path = makeSearchPath "bin" [ pkgs.coreutils pkgs.gnused pkgs.gnugrep pkgs.findutils pkgs.diffutils ]; + path = (makeSearchPath "bin" [ + pkgs.coreutils pkgs.gnused pkgs.gnugrep pkgs.findutils pkgs.diffutils + ]) + ":" + (makeSearchPath "sbin" [ + pkgs.mdadm + ]); }); in