select proper kernel by architecture
authorGuido Günther <agx@sigxcpu.org>
Fri, 3 Jul 2009 20:20:05 +0000 (22:20 +0200)
committerRichard W.M. Jones <rjones@redhat.com>
Sat, 4 Jul 2009 14:27:56 +0000 (15:27 +0100)
appliance/debian/debirf.conf.in
configure.ac

index a3dc16f..12506c5 100644 (file)
@@ -1,5 +1,5 @@
 DEBIRF_LABEL="debirf-libguestfs"
 DEBIRF_SUITE=@REPO@
 DEBIRF_MIRROR=@MIRROR@/${DEBIRF_DISTRO}
-DEBIRF_KERNEL_ARCH=486
+DEBIRF_KERNEL_ARCH=@DEBIAN_KERNEL_ARCH@
 
index f0eba8a..c70d104 100644 (file)
@@ -167,6 +167,18 @@ else
   test "x$DEBIRF" = "xno" &&
         AC_MSG_ERROR([debirf must be installed])
   DIST="DEBIAN"
+  case $host_cpu in
+      *86)
+          DEBIAN_KERNEL_ARCH=486
+          ;;
+      x86_64)
+          DEBIAN_KERNEL_ARCH=amd64
+          ;;
+      *)
+         DEBIAN_KERNEL_ARCH=$host_cpu
+         ;;
+   esac
+   AC_SUBST(DEBIAN_KERNEL_ARCH)
 fi
 AC_SUBST(DIST)