From 936108f54cbf8e81132a0a0a8c093a4056f0e11c Mon Sep 17 00:00:00 2001 From: Richard Jones Date: Mon, 20 Apr 2009 23:40:50 +0100 Subject: [PATCH] Various fixes to build and test in Koji. --- libguestfs.spec.in | 4 ++++ src/guestfs.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/libguestfs.spec.in b/libguestfs.spec.in index fb95c18..ef07ea8 100644 --- a/libguestfs.spec.in +++ b/libguestfs.spec.in @@ -13,6 +13,10 @@ URL: http://et.redhat.com/~rjones/libguestfs/ Source0: http://et.redhat.com/~rjones/libguestfs/files/%{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root +# Currently fails on non-x86 because of this error: +# "qemu: linux kernel too old to load a ram disk" +ExclusiveArch: %{ix86} x86_64 + # Basic build requirements: BuildRequires: /usr/bin/pod2man BuildRequires: /usr/bin/pod2text diff --git a/src/guestfs.c b/src/guestfs.c index 74fd76b..0b3142c 100644 --- a/src/guestfs.c +++ b/src/guestfs.c @@ -730,7 +730,9 @@ guestfs_launch (guestfs_h *g) add_cmdline (g, "-m"); add_cmdline (g, "384"); /* XXX Choose best size. */ +#if defined(__i386__) || defined(__x86_64) add_cmdline (g, "-no-kqemu"); /* Avoids a warning. */ +#endif add_cmdline (g, "-kernel"); add_cmdline (g, (char *) kernel); add_cmdline (g, "-initrd"); -- 1.8.3.1