summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xmkinitcpio2
1 files changed, 1 insertions, 1 deletions
diff --git a/mkinitcpio b/mkinitcpio
index dec139b..d4ebf94 100755
--- a/mkinitcpio
+++ b/mkinitcpio
@@ -82,7 +82,7 @@ get_kernver() {
return 0
fi
- [[ -r "$kernel" ]] || return 1
+ [[ -r "$BASEDIR$kernel" ]] || return 1
read _ kernver < <(file -b "$BASEDIR$kernel" | grep -o 'version [^ ]\+')
if [[ "$kernver" && -e "$BASEDIR/lib/modules/$kernver" ]]; then