From a3718c6b8be9bcbfd1e753c699f030d1852bc26e Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Fri, 11 May 2012 22:39:45 +0100 Subject: arm: Set minimum LIBGUESTFS_MEMSIZE at 128. For ARM Versatile ("versatilepb") architecture, memsize must be set to 256 (megabytes) else the appliance is unable to boot. Previously setting LIBGUESTFS_MEMSIZE=256 was not allowed. Versatile Express has larger limits. --- src/guestfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/guestfs.c b/src/guestfs.c index c48df438..f296a0c4 100644 --- a/src/guestfs.c +++ b/src/guestfs.c @@ -132,7 +132,7 @@ guestfs_create (void) */ str = getenv ("LIBGUESTFS_MEMSIZE"); if (str) { - if (sscanf (str, "%d", &g->memsize) != 1 || g->memsize <= 256) { + if (sscanf (str, "%d", &g->memsize) != 1 || g->memsize < 128) { warning (g, "non-numeric or too small value for LIBGUESTFS_MEMSIZE"); goto error; } -- cgit