Package: debirf Version: 0.27-1 Severity: wishlist Hi, attached patch introduces DEBIRF_KERNEL_ARCH so one can set the kernel architecture. This is helpful if e.g. building with a 64 bit kernel but you want to have the 486 kernel (e.g. for an appliance like libguestfs). Cheers, -- Guido
>From b553a5c77f44d7d53a66d9e9cffb68c4e89e59b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guido=20G=C3=BCnther?= <a...@sigxcpu.org> Date: Sun, 21 Feb 2010 13:30:02 +0100 Subject: [PATCH] Allow to explicitly pass kernel architecture
--- src/modules/install-kernel | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/src/modules/install-kernel b/src/modules/install-kernel index 4485385..13e62a2 100755 --- a/src/modules/install-kernel +++ b/src/modules/install-kernel @@ -27,7 +27,11 @@ if [ -z "$DEBIRF_KERNEL_PACKAGE" ] ; then # determine kernel arch. need everything after the kernel version # and debian version - KARCH=$(uname -r | cut -d- -f3-) + if [ -z "$DEBIRF_KERNEL_ARCH" ]; then + KARCH=$(uname -r | cut -d- -f3-) + else + KARCH="$DEBIRF_KERNEL_ARCH" + fi # determine the full kernel version from the dependency of the # generic 2.6-ARCH package in the debirf root (since it may be -- 1.7.0