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-08-28 13:35:36 -07:00
parent 87d5e457fe
commit 3bf22679b3
@@ -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";