3
0
Fork 0
forked from mirrors/nixpkgs

nixos/install-grub: Don't run GrubFs(/nix/store) if copyKernels is true

This commit is contained in:
Rickard Nilsson 2014-09-23 14:34:44 +02:00
parent 9f057131f1
commit 5be23fe888

View file

@ -199,7 +199,10 @@ sub GrubFs {
return Grub->new(path => $path, search => $search);
}
my $grubBoot = GrubFs("/boot");
my $grubStore = GrubFs("/nix/store");
my $grubStore;
if ($copyKernels == 0) {
my $grubStore = GrubFs("/nix/store");
}
# Generate the header.
my $conf .= "# Automatically generated. DO NOT EDIT THIS FILE!\n";