From 6147909f8e80d7fbf15e73f556ee1f6ab4c93289 Mon Sep 17 00:00:00 2001 From: Tuomas Tynkkynen Date: Sat, 6 Jun 2015 14:15:24 +0300 Subject: 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. --- .../boot/loader/generic-extlinux-compatible/extlinux-conf-builder.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'nixos/modules/system/boot/loader/generic-extlinux-compatible') diff --git a/nixos/modules/system/boot/loader/generic-extlinux-compatible/extlinux-conf-builder.sh b/nixos/modules/system/boot/loader/generic-extlinux-compatible/extlinux-conf-builder.sh index 8f2a496de8b6..9f32dbcce1a3 100644 --- a/nixos/modules/system/boot/loader/generic-extlinux-compatible/extlinux-conf-builder.sh +++ b/nixos/modules/system/boot/loader/generic-extlinux-compatible/extlinux-conf-builder.sh @@ -106,9 +106,10 @@ cat > $tmpFile <> $tmpFile + # Add up to $numGenerations generations of the system profile to the menu, # in reverse (most recent to least recent) order. for generation in $( -- cgit 1.4.1