diff options
-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(): |