setup-efi-ivi: a minor bug-fix 43/10243/1
authorArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Wed, 25 Sep 2013 11:33:08 +0000 (14:33 +0300)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Wed, 25 Sep 2013 11:36:49 +0000 (14:36 +0300)
The 'kernels' variable is supposed to contain a list of kernels, but it
actually only contains the latest kernel. This is not a problem since so fare
we only use this script when there is only one kernel, but nevertheless, worth
fixing.

Change-Id: I1dea6cc09de20dd0fae21a9eebd614f6fdb50549
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
setup-efi-ivi

index f5d9356..6d7c560 100755 (executable)
@@ -69,7 +69,7 @@ mkdir -p "$esp/EFI/boot"
        cp "$gummiboot_path/gummibootx64.efi" "$esp/EFI/boot/bootx64.efi"
 
 # Generate the list of installed kernels
-kernels="$(ls -1 "$esp" | grep "^vmlinuz-" | sort -r | head -n1)"
+kernels="$(ls -1 "$esp" | grep "^vmlinuz-" | sort -r)"
 # Get the newest kernel
 newest_kernel="$(printf "%s" "$kernels" | head -n1)"