diff options
author | Dave Reisner <dreisner@archlinux.org> | 2011-10-25 01:06:47 +0200 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2011-10-25 01:06:47 +0200 |
commit | cb67917fbfaf268316f3c56c804dacb0bd272fd7 (patch) | |
tree | e28a8b64e4a7f543b6705e765539b0f81ce3707d | |
parent | 6ed825e4399ffd8768b803c3e8372c37f5fb55d1 (diff) | |
download | mkinitcpio-cb67917fbfaf268316f3c56c804dacb0bd272fd7.tar.gz mkinitcpio-cb67917fbfaf268316f3c56c804dacb0bd272fd7.tar.xz |
mkinitcpio: dereference symlinks when resolving kernver
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
-rwxr-xr-x | mkinitcpio | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -90,7 +90,7 @@ get_kernver() { return 1 fi - read _ kernver < <(file -b "$BASEDIR$kernel" | grep -o 'version [^ ]\+') + read _ kernver < <(file -Lb "$BASEDIR$kernel" | grep -o 'version [^ ]\+') if [[ $kernver && -e $BASEDIR/lib/modules/$kernver ]]; then echo "$kernver" return 0 |