diff options
author | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2013-09-25 14:33:08 +0300 |
---|---|---|
committer | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2013-09-25 14:36:49 +0300 |
commit | 0e2aaba42824a8385d2113df34cdb1da391b6145 (patch) | |
tree | d1f31df9c696b427ce798b0b55d215476634359b | |
parent | 4865d33478a240d3503e1e51e1d3af4fc5c5f068 (diff) | |
download | setup-efi-ivi-0e2aaba42824a8385d2113df34cdb1da391b6145.tar.gz setup-efi-ivi-0e2aaba42824a8385d2113df34cdb1da391b6145.tar.bz2 setup-efi-ivi-0e2aaba42824a8385d2113df34cdb1da391b6145.zip |
setup-efi-ivi: a minor bug-fix
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>
-rwxr-xr-x | setup-efi-ivi | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/setup-efi-ivi b/setup-efi-ivi index f5d9356..6d7c560 100755 --- a/setup-efi-ivi +++ b/setup-efi-ivi @@ -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)" |