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:
parent
42737f0abf
commit
467847e095
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user