summaryrefslogtreecommitdiff
path: root/scripts/wic
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2017-02-02 15:32:58 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-02-02 17:37:36 +0000
commite6579b4e007ce89000c46c09917fbd3c72f18a73 (patch)
tree845e46152960384b79610b348a528cbe5158bc0e /scripts/wic
parente52bfb0e81d3fb2a474f08b2e2b8b89aadc61d14 (diff)
downloadopenembedded-core-e6579b4e007ce89000c46c09917fbd3c72f18a73.tar.gz
openembedded-core-e6579b4e007ce89000c46c09917fbd3c72f18a73.tar.bz2
openembedded-core-e6579b4e007ce89000c46c09917fbd3c72f18a73.zip
wic: direct: fix creation of work directory
It was a typo in current code: mktemp was used instead of mkdtemp to create work directory. This is fixed by using mkdtemp. Create work directory as a subdirectory of output directory to make sure both are on the same partition to make moving of result image faster. This also fixes possible disk space issues as mkdtemp uses TMPDIR, TEMP or TMP environment variables to get default value of its 'dir' parameter. Those variables are usually pointing to /tmp, which is not the best location to create huge images. Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'scripts/wic')
0 files changed, 0 insertions, 0 deletions