mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 15:11:25 +00:00
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