diff options
Diffstat (limited to 'scripts/lib/mic/imager/direct.py')
-rw-r--r-- | scripts/lib/mic/imager/direct.py | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/scripts/lib/mic/imager/direct.py b/scripts/lib/mic/imager/direct.py index 17bfd01566..a4f5691f79 100644 --- a/scripts/lib/mic/imager/direct.py +++ b/scripts/lib/mic/imager/direct.py | |||
@@ -31,7 +31,7 @@ import shutil | |||
31 | 31 | ||
32 | from mic import kickstart, msger | 32 | from mic import kickstart, msger |
33 | from mic.utils import fs_related, runner, misc | 33 | from mic.utils import fs_related, runner, misc |
34 | from mic.utils.partitionedfs import PartitionedMount | 34 | from mic.utils.partitionedfs import Image |
35 | from mic.utils.errors import CreatorError, MountError | 35 | from mic.utils.errors import CreatorError, MountError |
36 | from mic.imager.baseimager import BaseImageCreator | 36 | from mic.imager.baseimager import BaseImageCreator |
37 | from mic.utils.oe.misc import * | 37 | from mic.utils.oe.misc import * |
@@ -226,7 +226,7 @@ class DirectImageCreator(BaseImageCreator): | |||
226 | """ | 226 | """ |
227 | parts = self._get_parts() | 227 | parts = self._get_parts() |
228 | 228 | ||
229 | self.__image = PartitionedMount() | 229 | self.__image = Image() |
230 | 230 | ||
231 | for p in parts: | 231 | for p in parts: |
232 | # as a convenience, set source to the boot partition source | 232 | # as a convenience, set source to the boot partition source |
@@ -237,12 +237,11 @@ class DirectImageCreator(BaseImageCreator): | |||
237 | for p in parts: | 237 | for p in parts: |
238 | # need to create the filesystems in order to get their | 238 | # need to create the filesystems in order to get their |
239 | # sizes before we can add them and do the layout. | 239 | # sizes before we can add them and do the layout. |
240 | # PartitionedMount.create() actually calls __format_disks() | 240 | # Image.create() actually calls __format_disks() to create |
241 | # to create the disk images and carve out the partitions, | 241 | # the disk images and carve out the partitions, then |
242 | # then self.install() calls PartitionedMount.install() | 242 | # self.assemble() calls Image.assemble() which calls |
243 | # which calls __install_partitition() for each partition | 243 | # __write_partitition() for each partition to dd the fs |
244 | # to dd the fs into the partitions. | 244 | # into the partitions. |
245 | |||
246 | fstab = self.__write_fstab(self.rootfs_dir.get("ROOTFS_DIR")) | 245 | fstab = self.__write_fstab(self.rootfs_dir.get("ROOTFS_DIR")) |
247 | 246 | ||
248 | p.prepare(self, self.workdir, self.oe_builddir, self.rootfs_dir, | 247 | p.prepare(self, self.workdir, self.oe_builddir, self.rootfs_dir, |