]> code.ossystems Code Review - openembedded-core.git/commit
busybox: Guard against interrupted compiles
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 23 Jan 2017 11:44:29 +0000 (11:44 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 23 Jan 2017 22:38:43 +0000 (22:38 +0000)
commit601abb497531823a73bdec3baf56952086e5b4f4
tree51efe86d7ffc0789f44d6ccbbc8aabac067b5f0b
parent842ad404b36e00c89f615a3f7db4a2d30062effa
busybox: Guard against interrupted compiles

If busybox is interrupted during do_compile, it can corrupt .config with
the suid version, or worse. Typically this leads to files disappearing,
particularly /etc/init.d/* which leads to an empty busybox-hwclock.
That then results in errors at do_rootfs time due to the missing package.

The fix is to use any 'orig' present to restore stat at the start of
compile.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/busybox/busybox.inc