diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/lib/mic/imager/direct.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/lib/mic/imager/direct.py b/scripts/lib/mic/imager/direct.py index ebf77d666d..7e2b63a37c 100644 --- a/scripts/lib/mic/imager/direct.py +++ b/scripts/lib/mic/imager/direct.py | |||
@@ -270,10 +270,12 @@ class DirectImageCreator(BaseImageCreator): | |||
270 | # when/if we need to actually do package selection we | 270 | # when/if we need to actually do package selection we |
271 | # should modify things to use those objects, but for now | 271 | # should modify things to use those objects, but for now |
272 | # we can avoid that. | 272 | # we can avoid that. |
273 | |||
274 | fstab = self.__write_fstab(self.rootfs_dir.get("ROOTFS_DIR")) | ||
275 | |||
273 | p.prepare(self, self.workdir, self.oe_builddir, self.rootfs_dir, | 276 | p.prepare(self, self.workdir, self.oe_builddir, self.rootfs_dir, |
274 | self.bootimg_dir, self.kernel_dir, self.native_sysroot) | 277 | self.bootimg_dir, self.kernel_dir, self.native_sysroot) |
275 | 278 | ||
276 | fstab = self.__write_fstab(p.get_rootfs()) | ||
277 | self._restore_fstab(fstab) | 279 | self._restore_fstab(fstab) |
278 | 280 | ||
279 | self.__instimage.add_partition(int(p.size), | 281 | self.__instimage.add_partition(int(p.size), |
@@ -286,6 +288,7 @@ class DirectImageCreator(BaseImageCreator): | |||
286 | boot = p.active, | 288 | boot = p.active, |
287 | align = p.align, | 289 | align = p.align, |
288 | part_type = p.part_type) | 290 | part_type = p.part_type) |
291 | |||
289 | self.__instimage.layout_partitions(self._ptable_format) | 292 | self.__instimage.layout_partitions(self._ptable_format) |
290 | 293 | ||
291 | self.__imgdir = self.workdir | 294 | self.__imgdir = self.workdir |