3
0
Fork 0
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:
Tuomas Tynkkynen 2015-06-06 14:15:24 +03:00
parent 1947179036
commit 6147909f8e

View file

@ -106,9 +106,10 @@ cat > $tmpFile <<EOF
DEFAULT nixos-default
TIMEOUT $timeout
$(addEntry $default default)
EOF
addEntry $default default >> $tmpFile
# Add up to $numGenerations generations of the system profile to the menu,
# in reverse (most recent to least recent) order.
for generation in $(