summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>2011-07-02 16:56:38 +0200
committerThomas B├Ąchler <thomas@archlinux.org>2011-07-02 17:02:06 +0200
commit320ef8bdebf867f18cf475bcf46dd578c6295fd7 (patch)
treedcfc9e8e196f56adb17757d89d964610ec906db6
parentda81935dbb203340e9f3b394d4f6f4e5b3aa63c4 (diff)
downloadmkinitcpio-320ef8bdebf867f18cf475bcf46dd578c6295fd7.tar.gz
mkinitcpio-320ef8bdebf867f18cf475bcf46dd578c6295fd7.tar.xz
Fix -k /path when -b is used
Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
-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