Merge pull request #4231 from rickynils/install-grub
nixos/install-grub: Don't run GrubFs(/nix/store) if copyKernels is true
This commit is contained in:
commit
567084d71c
@ -199,7 +199,10 @@ sub GrubFs {
|
|||||||
return Grub->new(path => $path, search => $search);
|
return Grub->new(path => $path, search => $search);
|
||||||
}
|
}
|
||||||
my $grubBoot = GrubFs("/boot");
|
my $grubBoot = GrubFs("/boot");
|
||||||
my $grubStore = GrubFs("/nix/store");
|
my $grubStore;
|
||||||
|
if ($copyKernels == 0) {
|
||||||
|
my $grubStore = GrubFs("/nix/store");
|
||||||
|
}
|
||||||
|
|
||||||
# Generate the header.
|
# Generate the header.
|
||||||
my $conf .= "# Automatically generated. DO NOT EDIT THIS FILE!\n";
|
my $conf .= "# Automatically generated. DO NOT EDIT THIS FILE!\n";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user