diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2015-06-27 12:23:38 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-07-02 23:08:37 +0100 |
commit | 1e307c3b400f407726d937cf474e55857a76a25e (patch) | |
tree | c9c1ddfac8b344f9a004527c5a17fcf4a0ab8977 /scripts/lib | |
parent | e9237bf0fae2734f5fbbd6b8a418314ce6db5f5f (diff) | |
download | poky-1e307c3b400f407726d937cf474e55857a76a25e.tar.gz |
wic: Rename partition images
Renamed partition images into <final image>.p<partition number>
This should make output directory look more organized and easier
to understand.
(From OE-Core rev: c826939e4eeed034f39207089ec1a7ed87c1c493)
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib')
-rw-r--r-- | scripts/lib/wic/utils/partitionedfs.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/lib/wic/utils/partitionedfs.py b/scripts/lib/wic/utils/partitionedfs.py index e093ec5778..d61087a24d 100644 --- a/scripts/lib/wic/utils/partitionedfs.py +++ b/scripts/lib/wic/utils/partitionedfs.py | |||
@@ -18,6 +18,7 @@ | |||
18 | # with this program; if not, write to the Free Software Foundation, Inc., 59 | 18 | # with this program; if not, write to the Free Software Foundation, Inc., 59 |
19 | # Temple Place - Suite 330, Boston, MA 02111-1307, USA. | 19 | # Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
20 | 20 | ||
21 | import os | ||
21 | from wic import msger | 22 | from wic import msger |
22 | from wic.utils.errors import ImageError | 23 | from wic.utils.errors import ImageError |
23 | from wic.utils.oe.misc import exec_cmd, exec_native_cmd | 24 | from wic.utils.oe.misc import exec_cmd, exec_native_cmd |
@@ -356,6 +357,7 @@ class Image(object): | |||
356 | for p in self.partitions: | 357 | for p in self.partitions: |
357 | self.__write_partition(p['num'], p['source_file'], | 358 | self.__write_partition(p['num'], p['source_file'], |
358 | p['start'], p['size'], image_file) | 359 | p['start'], p['size'], image_file) |
360 | os.rename(p['source_file'], image_file + '.p%d' % p['num']) | ||
359 | 361 | ||
360 | def create(self): | 362 | def create(self): |
361 | for dev in self.disks.keys(): | 363 | for dev in self.disks.keys(): |