summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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