From 467847e09521ea2f9553681a51fc83b89f444fd5 Mon Sep 17 00:00:00 2001 From: Will Woods Date: Mon, 23 Apr 2012 16:45:20 -0400 Subject: [PATCH] reduce image size from 2GB to 1GB It's a sparse file, so this really just changes the size of the squashfs.img by about 100kb. But hey - 100kb! --- src/pylorax/treebuilder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pylorax/treebuilder.py b/src/pylorax/treebuilder.py index 87e81b35..50fb1f94 100644 --- a/src/pylorax/treebuilder.py +++ b/src/pylorax/treebuilder.py @@ -127,7 +127,7 @@ class RuntimeBuilder(object): check_call(["depmod", "-a", "-F", ksyms, "-b", root, kver]) generate_module_info(moddir+kver, outfile=moddir+"module-info") - def create_runtime(self, outfile="/tmp/squashfs.img", compression="xz", compressargs=[], size=2): + def create_runtime(self, outfile="/tmp/squashfs.img", compression="xz", compressargs=[], size=1): # make live rootfs image - must be named "LiveOS/rootfs.img" for dracut workdir = joinpaths(os.path.dirname(outfile), "runtime-workdir") if size: