diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2014-06-25 07:05:17 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2014-06-25 07:05:17 +0000 |
commit | 0e31b3e95fee62832477258200d7ed7122a74c49 (patch) | |
tree | a1d954d0adfa368c2b099c12d7340fb7c882a555 /main/syslinux/update-extlinux | |
parent | b7d3caad2cc760d74965aa7d4366cb4a7d0d5909 (diff) | |
download | aports-0e31b3e95fee62832477258200d7ed7122a74c49.tar.bz2 aports-0e31b3e95fee62832477258200d7ed7122a74c49.tar.xz |
main/syslinux: fix update-extlinux to handle vanilla kernel
the vanilla kernel does not have any -* suffix so it needs special
handling.
Diffstat (limited to 'main/syslinux/update-extlinux')
-rwxr-xr-x | main/syslinux/update-extlinux | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/main/syslinux/update-extlinux b/main/syslinux/update-extlinux index b3c387baee..b272ffd721 100755 --- a/main/syslinux/update-extlinux +++ b/main/syslinux/update-extlinux @@ -115,8 +115,12 @@ if [ -f "/boot/xen.gz" ]; then done fi -for kernel in $(find /boot -name "vmlinuz-*" -type f); do - tag=$(basename $kernel | cut -b9-) +for kernel in $(find /boot -name "vmlinuz*" -type f); do + case $kernel in + *vmlinuz) tag=vanilla;; + *vmlinuz-*) tag=$(basename $kernel | cut -b9-);; + *) continue;; + esac everbose "Found kernel: $kernel" label=$(grep -w -l $tag /usr/share/kernel/*/kernel.release | cut -d/ -f5) if [ -z "$label" ]; then |