nixos/grub: Kernels don't need to be copied if we can read the nix store
This commit is contained in:
parent
87d5e457fe
commit
3bf22679b3
1 changed files with 5 additions and 0 deletions
|
@ -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";
|
||||
|
||||
|
|
Loading…
Reference in a new issue