diff options
author | Paul Barker <pbarker@konsulko.com> | 2021-01-11 10:32:42 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-02-03 14:13:54 +0000 |
commit | 7655375e15cdf31c2017efb9de8543f35cb1cbff (patch) | |
tree | 36a9cbf7a418fe04d8b87d0c75ed3e7188d11136 /scripts/lib/wic | |
parent | d1a8712f0b4b52a6d6013979a63057a994ea816d (diff) | |
download | poky-7655375e15cdf31c2017efb9de8543f35cb1cbff.tar.gz |
wic: Add workdir argument
This allows the path for the temporary workdir used by wic to be set
when running wic from bitbake or directly from the command line.
(From OE-Core rev: 447643eebff00715bd9717ebcb75edb20fc69778)
Signed-off-by: Paul Barker <pbarker@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 2e7314ac3a3cab89de93c932e8efc75de0feb0a7)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
(cherry picked from commit a2308800b7eb5215982db7269d74d6292075f19f)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/wic')
-rw-r--r-- | scripts/lib/wic/plugins/imager/direct.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/lib/wic/plugins/imager/direct.py b/scripts/lib/wic/plugins/imager/direct.py index 0ca67b77d5..b329568c7a 100644 --- a/scripts/lib/wic/plugins/imager/direct.py +++ b/scripts/lib/wic/plugins/imager/direct.py | |||
@@ -62,7 +62,7 @@ class DirectPlugin(ImagerPlugin): | |||
62 | 62 | ||
63 | self.name = "%s-%s" % (os.path.splitext(os.path.basename(wks_file))[0], | 63 | self.name = "%s-%s" % (os.path.splitext(os.path.basename(wks_file))[0], |
64 | strftime("%Y%m%d%H%M")) | 64 | strftime("%Y%m%d%H%M")) |
65 | self.workdir = tempfile.mkdtemp(dir=self.outdir, prefix='tmp.wic.') | 65 | self.workdir = options.workdir or tempfile.mkdtemp(dir=self.outdir, prefix='tmp.wic.') |
66 | self._image = None | 66 | self._image = None |
67 | self.ptable_format = self.ks.bootloader.ptable | 67 | self.ptable_format = self.ks.bootloader.ptable |
68 | self.parts = self.ks.partitions | 68 | self.parts = self.ks.partitions |