]> code.ossystems Code Review - openembedded-core.git/commit
isoimage-isohybrid: don't include cpio in cpio image
authorIoan-Adrian Ratiu <adrian.ratiu@ni.com>
Tue, 18 Sep 2018 16:17:52 +0000 (19:17 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 19 Sep 2018 13:31:33 +0000 (06:31 -0700)
commit7a7b29f5f1392f4f87af4f20cda99c66b4789fde
tree77ff7c9ebb65170fb02df4137774478e1c844e05
parent30121a78555574f49b321566fcab172417bdf3e3
isoimage-isohybrid: don't include cpio in cpio image

Because the find | cpio processes execute in parallel connected via
the pipe, and the cpio outputs in the same dir find searches for
source files, the cpio will be included in itself partially, depending
on how fast the build machine creates the cpio file before cpio
gobbles it up.

This bloats the ISO image, though compression reduces the .iso file size,
once the kernel decompresses the cpio image and boots it live, it uses
up to double the RAM memory.

Fix this by creating the initrd.cpio file directly inside cr_workdir.

Signed-off-by: Ioan-Adrian Ratiu <adrian.ratiu@ni.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/lib/wic/plugins/source/isoimage-isohybrid.py