poky/scripts/lib/wic/plugins/source
Ioan-Adrian Ratiu eb134c6ee6 isoimage-isohybrid.py: fix cpio working directory
Take `pwd` to be <initial-dir>. The %s path is relative to it. The value
of %s is "output_folder/build". The current code works as follows:

Changing directory to %s and finding the sources (after cd'ing) to cpio
with output redirection to %s/initrd.cpio triggers the following error

"Error: exec_cmd: cd output_folder/build/INITRD && find . | cpio -o -H
newc >output_folder/build/initrd.cpio  returned '1' instead of 0"

This happens because after the cd, `pwd` is <initial-dir>/%s and by the
redirect we write the result to to <initial-dir>/%s/%s/initrd.cpio which
obviously does not exist.

Fix this by getting the sources with "find %s" instead of "cd && find ."

(From OE-Core rev: 07fa4783566d22d46ce719a621eee5404932dbbe)

Signed-off-by: Ioan-Adrian Ratiu <adrian.ratiu@ni.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2016-02-07 17:29:59 +00:00
..
bootimg-efi.py wic: do not remove build dir in source plugins 2016-01-20 17:07:13 +00:00
bootimg-partition.py wic: do not remove build dir in source plugins 2016-01-20 17:07:13 +00:00
bootimg-pcbios.py wic: do not remove build dir in source plugins 2016-01-20 17:07:13 +00:00
fsimage.py wic: code cleanup: superfluous-parens 2015-06-23 11:47:36 +01:00
isoimage-isohybrid.py isoimage-isohybrid.py: fix cpio working directory 2016-02-07 17:29:59 +00:00
rawcopy.py wic: rawcopy: Copy source file to build folder 2016-01-07 13:40:16 +00:00
rootfs_pcbios_ext.py wic: removed unused imports 2016-01-19 17:24:47 +00:00
rootfs.py wic: get rid of get_rootfs and set_rootfs 2016-01-18 11:47:06 +00:00