diff options
author | Tom Zanussi <tom.zanussi@linux.intel.com> | 2014-08-08 10:50:07 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-08-11 10:53:11 +0100 |
commit | 467bf7e68f537b9475241e4cd3450100d0146ab2 (patch) | |
tree | e063d5180a9538380f191548ab0e004098d70a92 /scripts/lib/mic/imager/direct.py | |
parent | 4d1f5ee6d1ae1eb7f60d58c4e960dde879ae0e7f (diff) | |
download | poky-467bf7e68f537b9475241e4cd3450100d0146ab2.tar.gz |
wic: Update cleanup/unmount-related code
The wic code inherited a basic image-creation flow based on mounting
loop devices, but wic doesn't actually mount or unmount anything, so
get rid of unmount() and consolidate whatever it did do with
cleanup().
(From OE-Core rev: 1b103bf4a7c7527d4fc57bad1bbd1d5a5bbddb4a)
Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/mic/imager/direct.py')
-rw-r--r-- | scripts/lib/mic/imager/direct.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/lib/mic/imager/direct.py b/scripts/lib/mic/imager/direct.py index b96740d0f4..91f64d52cf 100644 --- a/scripts/lib/mic/imager/direct.py +++ b/scripts/lib/mic/imager/direct.py | |||
@@ -354,7 +354,7 @@ class DirectImageCreator(BaseImageCreator): | |||
354 | 354 | ||
355 | return (rootdev, root_part_uuid) | 355 | return (rootdev, root_part_uuid) |
356 | 356 | ||
357 | def _unmount_instroot(self): | 357 | def _cleanup(self): |
358 | if not self.__instimage is None: | 358 | if not self.__instimage is None: |
359 | try: | 359 | try: |
360 | self.__instimage.cleanup() | 360 | self.__instimage.cleanup() |