summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2011-10-25 01:06:47 +0200
committerDave Reisner <dreisner@archlinux.org>2011-10-25 01:06:47 +0200
commitcb67917fbfaf268316f3c56c804dacb0bd272fd7 (patch)
treee28a8b64e4a7f543b6705e765539b0f81ce3707d
parent6ed825e4399ffd8768b803c3e8372c37f5fb55d1 (diff)
downloadmkinitcpio-cb67917fbfaf268316f3c56c804dacb0bd272fd7.tar.gz
mkinitcpio-cb67917fbfaf268316f3c56c804dacb0bd272fd7.tar.xz
mkinitcpio: dereference symlinks when resolving kernver
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
-rwxr-xr-xmkinitcpio2
1 files changed, 1 insertions, 1 deletions
diff --git a/mkinitcpio b/mkinitcpio
index 8d3a67f..c20a1b6 100755
--- a/mkinitcpio
+++ b/mkinitcpio
@@ -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