diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2012-05-11 22:39:45 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2012-05-12 16:59:48 +0100 |
commit | a3718c6b8be9bcbfd1e753c699f030d1852bc26e (patch) | |
tree | d7cf53013a0570cd8f9863797ab35102709bc370 | |
parent | 77afc92fcd08677f9a9ae3b4f6c6919eb8ec2b33 (diff) | |
download | libguestfs-a3718c6b8be9bcbfd1e753c699f030d1852bc26e.tar.gz libguestfs-a3718c6b8be9bcbfd1e753c699f030d1852bc26e.tar.xz libguestfs-a3718c6b8be9bcbfd1e753c699f030d1852bc26e.zip |
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.
-rw-r--r-- | src/guestfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |