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
@ -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 New Issue
Block a user