nixos/generate-config: Only add store search path when kernels are not copied
This commit is contained in:
parent
9467937639
commit
961e9867b3
|
@ -182,9 +182,12 @@ if ($grubVersion == 1) {
|
||||||
}
|
}
|
||||||
|
|
||||||
else {
|
else {
|
||||||
|
if ($copyKernels == 0) {
|
||||||
|
$conf .= "
|
||||||
|
" . $grubStore->search;
|
||||||
|
}
|
||||||
$conf .= "
|
$conf .= "
|
||||||
" . $grubBoot->search . "
|
" . $grubBoot->search . "
|
||||||
" . $grubStore->search . "
|
|
||||||
if [ -s \$prefix/grubenv ]; then
|
if [ -s \$prefix/grubenv ]; then
|
||||||
load_env
|
load_env
|
||||||
fi
|
fi
|
||||||
|
@ -282,7 +285,9 @@ sub addEntry {
|
||||||
} else {
|
} else {
|
||||||
$conf .= "menuentry \"$name\" {\n";
|
$conf .= "menuentry \"$name\" {\n";
|
||||||
$conf .= $grubBoot->search . "\n";
|
$conf .= $grubBoot->search . "\n";
|
||||||
$conf .= $grubStore->search . "\n";
|
if ($copyKernels == 0) {
|
||||||
|
$conf .= $grubStore->search . "\n";
|
||||||
|
}
|
||||||
$conf .= " $extraPerEntryConfig\n" if $extraPerEntryConfig;
|
$conf .= " $extraPerEntryConfig\n" if $extraPerEntryConfig;
|
||||||
$conf .= " multiboot $xen $xenParams\n" if $xen;
|
$conf .= " multiboot $xen $xenParams\n" if $xen;
|
||||||
$conf .= " " . ($xen ? "module" : "linux") . " $kernel $kernelParams\n";
|
$conf .= " " . ($xen ? "module" : "linux") . " $kernel $kernelParams\n";
|
||||||
|
|
Loading…
Reference in New Issue