summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2011-05-27 11:56:21 +0100
committerRichard W.M. Jones <rjones@redhat.com>2011-05-27 11:56:21 +0100
commitc280d22671b1c5b2e6b39951b9c5bc5e83882ac9 (patch)
tree686ec2baf4cee49e8bb87be8fe1531b33411c142
parent6ee123ac387c8b3b8b60418596b8d1bae99c5b01 (diff)
downloadfebootstrap-c280d22671b1c5b2e6b39951b9c5bc5e83882ac9.tar.gz
febootstrap-c280d22671b1c5b2e6b39951b9c5bc5e83882ac9.tar.xz
febootstrap-c280d22671b1c5b2e6b39951b9c5bc5e83882ac9.zip
Increase appliance container to 4 GB.
The overhead is now 66 MB which is unfortunate. However 4 GB should be enough for people who accidentally add kernel modules that are hand-compiled with all the debuginfo information in them.
-rw-r--r--helper/ext2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/helper/ext2.c b/helper/ext2.c
index fd67568..beef8ed 100644
--- a/helper/ext2.c
+++ b/helper/ext2.c
@@ -43,13 +43,13 @@ ext2_filsys fs;
*
* The downside of allocating a very large initial disk is that the
* fixed overhead of ext2 is larger (since ext2 calculates it based on
- * the size of the disk). For a 1GB disk the overhead is
- * approximately 16MB.
+ * the size of the disk). For a 4GB disk the overhead is
+ * approximately 66MB.
*
* In future, make this configurable, or determine it from the input
* files (XXX).
*/
-#define APPLIANCE_SIZE (1024*1024*1024)
+#define APPLIANCE_SIZE ((off_t)4*1024*1024*1024)
static void
ext2_start (const char *hostcpu, const char *appliance,