forked from mirrors/nixpkgs
extlinux-conf-builder: Properly copy kernels for the default entry
When calling addEntry inside a subshell, the filesCopied array would be updated only in the subshell's environment. This would only cause an issue if no -g flag was passed to the script, causing no kernels to be copied.
This commit is contained in:
parent
1947179036
commit
6147909f8e
|
@ -106,9 +106,10 @@ cat > $tmpFile <<EOF
|
||||||
DEFAULT nixos-default
|
DEFAULT nixos-default
|
||||||
|
|
||||||
TIMEOUT $timeout
|
TIMEOUT $timeout
|
||||||
$(addEntry $default default)
|
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
addEntry $default default >> $tmpFile
|
||||||
|
|
||||||
# Add up to $numGenerations generations of the system profile to the menu,
|
# Add up to $numGenerations generations of the system profile to the menu,
|
||||||
# in reverse (most recent to least recent) order.
|
# in reverse (most recent to least recent) order.
|
||||||
for generation in $(
|
for generation in $(
|
||||||
|
|
Loading…
Reference in a new issue