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!
This commit is contained in:
Will Woods 2012-04-23 16:45:20 -04:00
parent 42737f0abf
commit 467847e095

View File

@ -127,7 +127,7 @@ class RuntimeBuilder(object):
check_call(["depmod", "-a", "-F", ksyms, "-b", root, kver]) check_call(["depmod", "-a", "-F", ksyms, "-b", root, kver])
generate_module_info(moddir+kver, outfile=moddir+"module-info") 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 # make live rootfs image - must be named "LiveOS/rootfs.img" for dracut
workdir = joinpaths(os.path.dirname(outfile), "runtime-workdir") workdir = joinpaths(os.path.dirname(outfile), "runtime-workdir")
if size: if size: