[arch-projects] [PATCH] [mkinitcpio] Fix -k /path when -b is used
Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@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
On Thu, Jun 30, 2011 at 11:47:49PM -0300, Gerardo Exequiel Pozzi wrote:
Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@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
On Thu, Jun 30, 2011 at 10:55:22PM -0400, Dave Reisner wrote:
On Thu, Jun 30, 2011 at 11:47:49PM -0300, Gerardo Exequiel Pozzi wrote:
Signed-off-by: Gerardo Exequiel Pozzi <vmlinuz386@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
Disregard. I need sleep. This is kosher. d
participants (2)
-
Dave Reisner
-
Gerardo Exequiel Pozzi