target: ensure target/ dir is writable
authorNathan Lynch <ntl@pobox.com>
Tue, 28 Jan 2014 20:11:21 +0000 (21:11 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Tue, 28 Jan 2014 21:51:47 +0000 (22:51 +0100)
commit5f52d7a8bd659664849cb4c58d7d791f129de8ce
tree086cf7df9e16ee1c777b5c84d43ff63a2f5bed8f
parent167ca173f6f80670ffd4459aa996d4f421aed296
target: ensure target/ dir is writable

If the source target skeleton is read-only (eg. because Buildroot's
source dir is), modifications to the output target (such as creating
/etc/hostname and /etc/issue) fail.

(This can happen if the Buildroot source dir is NFS-mounted read-only
to be shared between different machines, for example).

Signed-off-by: Nathan Lynch <ntl@pobox.com>
[yann.morin.1998@free.fr: we use rsync now, not cp; --chmod=Du+w
 suggested by Arnout; clarify commit log]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Arnout Vandecappelle <arnout@mind.be>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Makefile