summaryrefslogtreecommitdiff
path: root/meta/classes/devshell.bbclass
diff options
context:
space:
mode:
authorEnrico Scholz <enrico.scholz@sigma-chemnitz.de>2015-01-22 17:13:01 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-02-11 17:39:51 +0000
commit5a5802b15d965f62bf61697e1dbffab89702da96 (patch)
treeb7c4184a7f4e1445952ce4223abe357cdcb9e18d /meta/classes/devshell.bbclass
parentc524c5cfdfe0395b601cb9980e0bbd69b4dc9afa (diff)
downloadopenembedded-core-5a5802b15d965f62bf61697e1dbffab89702da96.tar.gz
openembedded-core-5a5802b15d965f62bf61697e1dbffab89702da96.tar.bz2
openembedded-core-5a5802b15d965f62bf61697e1dbffab89702da96.zip
image_types.bbclass: manage 'cpio_append' directory
For cpio images, do_rootfs() can operate on a dirty '${WORKDIR}/cpio_append' directory which contains e.g. files from previous builds. This can cause unwanted files in the image or can break the build. E.g. when there is a cpio_append/init -> /sbin/init symlink symlink, the 'ln -sf' can fail due to SELinux restrictions: | $ ls -la cpio_append/init | lrwxrwxrwx. 1 ensc ensc 10 22. Jan 16:26 cpio_append/init -> /sbin/init | | $ strace ln -sf /sbin/init cpio_append/init | ... | stat("cpio_append/init", 0x7fffbb9ca310) = -1 EACCES (Permission denied) | exit_group(1) = ? Patch cleans up 'cpio_append' before executing the 'do_rootfs' task by adding it to 'cleandirs'. An alternative implementation (which avoids creation of this empty dir for non-cpio images) might remove it within IMAGE_CMD_cpio, but this might break builds where people rely on the existence of this directory (e.g. to add local files). (From OE-Core rev: 4db3cc2360289c062fa0df4678f2f2ef990f0c1a) Signed-off-by: Enrico Scholz <enrico.scholz@sigma-chemnitz.de> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'meta/classes/devshell.bbclass')
0 files changed, 0 insertions, 0 deletions