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:01:27 +0100 |
commit | c826939e4eeed034f39207089ec1a7ed87c1c493 (patch) | |
tree | 99e64223a19882052b06116bd7aec63718f16e2a /scripts/lib/wic/utils | |
parent | ab1c845758d4f80c82ffcf481007803905e45c29 (diff) | |
download | openembedded-core-c826939e4eeed034f39207089ec1a7ed87c1c493.tar.gz openembedded-core-c826939e4eeed034f39207089ec1a7ed87c1c493.tar.bz2 openembedded-core-c826939e4eeed034f39207089ec1a7ed87c1c493.zip |
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.
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Diffstat (limited to 'scripts/lib/wic/utils')
-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 @@ # with this program; if not, write to the Free Software Foundation, Inc., 59 # Temple Place - Suite 330, Boston, MA 02111-1307, USA. +import os from wic import msger from wic.utils.errors import ImageError from wic.utils.oe.misc import exec_cmd, exec_native_cmd @@ -356,6 +357,7 @@ class Image(object): for p in self.partitions: self.__write_partition(p['num'], p['source_file'], p['start'], p['size'], image_file) + os.rename(p['source_file'], image_file + '.p%d' % p['num']) def create(self): for dev in self.disks.keys(): |