forked from mirrors/nixpkgs
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 <aszlig@redmoonstudios.org>
This commit is contained in:
parent
769b74c463
commit
ff84facca3
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue