Make install-grub.pl work when $PATH is empty
This commit is contained in:
parent
f44d27a96c
commit
1f401a0e35
@ -18,6 +18,7 @@ let
|
|||||||
version extraConfig extraPerEntryConfig extraEntries
|
version extraConfig extraPerEntryConfig extraEntries
|
||||||
extraEntriesBeforeNixOS configurationLimit copyKernels timeout
|
extraEntriesBeforeNixOS configurationLimit copyKernels timeout
|
||||||
default devices;
|
default devices;
|
||||||
|
path = makeSearchPath "bin" [ pkgs.coreutils pkgs.gnused pkgs.findutils pkgs.gnugrep ];
|
||||||
});
|
});
|
||||||
|
|
||||||
in
|
in
|
||||||
|
@ -38,6 +38,7 @@ my $configurationLimit = int(get("configurationLimit"));
|
|||||||
my $copyKernels = get("copyKernels") eq "true";
|
my $copyKernels = get("copyKernels") eq "true";
|
||||||
my $timeout = int(get("timeout"));
|
my $timeout = int(get("timeout"));
|
||||||
my $defaultEntry = int(get("default"));
|
my $defaultEntry = int(get("default"));
|
||||||
|
$ENV{'PATH'} = get("path");
|
||||||
|
|
||||||
die "unsupported GRUB version\n" if $grubVersion != 1 && $grubVersion != 2;
|
die "unsupported GRUB version\n" if $grubVersion != 1 && $grubVersion != 2;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user