[arch-projects] [PATCH] [mkinitcpio] Fix -k /path when -b is used

Dave Reisner d at falconindy.com
Thu Jun 30 22:55:22 EDT 2011


On Thu, Jun 30, 2011 at 11:47:49PM -0300, Gerardo Exequiel Pozzi wrote:
> Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386 at yahoo.com.ar>
> ---
>  mkinitcpio |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/mkinitcpio b/mkinitcpio
> index 459c828..72a2fb2 100755
> --- a/mkinitcpio
> +++ b/mkinitcpio
> @@ -86,7 +86,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
> -- 
> 1.7.6
> 

I'm not too sure about this. This will probably break building presets
from outside of a basedir. I'd rather we just document this in the
manpage.

d


More information about the arch-projects mailing list