summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xmkinitcpio2
1 files changed, 1 insertions, 1 deletions
diff --git a/mkinitcpio b/mkinitcpio
index 5aa79d7..289c98d 100755
--- a/mkinitcpio
+++ b/mkinitcpio
@@ -79,7 +79,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