nixos/grub: Kernels don't need to be copied if we can read the nix store

This commit is contained in:
William A. Kennington III 2014-05-02 00:45:06 -05:00
parent 87d5e457fe
commit 3bf22679b3

View file

@ -158,6 +158,11 @@ sub GrubFs {
my $grubBoot = GrubFs("/boot");
my $grubStore = GrubFs("/nix");
# We don't need to copy if we can read the kernels directly
if ($grubStore->search ne "") {
$copyKernels = 0;
}
# Generate the header.
my $conf .= "# Automatically generated. DO NOT EDIT THIS FILE!\n";