projects
/
tools
/
mic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c616b90
)
don't drop when failed to unmap kpartx device
author
Gui Chen
<gui.chen@intel.com>
Wed, 28 Nov 2012 06:29:04 +0000
(14:29 +0800)
committer
Gui Chen
<gui.chen@intel.com>
Wed, 12 Dec 2012 11:33:44 +0000
(19:33 +0800)
just warn the failure, no need to drop here
Signed-off-by: Gui Chen <gui.chen@intel.com>
mic/imager/raw.py
patch
|
blob
|
history
diff --git
a/mic/imager/raw.py
b/mic/imager/raw.py
index 4b8c1f79a0519714992d1c91c68d4e99f4bf2c88..7299218ae63ace544649d0b9fed78392e91d5147 100644
(file)
--- a/
mic/imager/raw.py
+++ b/
mic/imager/raw.py
@@
-373,7
+373,10
@@
class RawImageCreator(BaseImageCreator):
def _unmount_instroot(self):
if not self.__instloop is None:
- self.__instloop.cleanup()
+ try:
+ self.__instloop.cleanup()
+ except MountError, err:
+ mseger.warning("%s" % err)
def _resparse(self, size = None):
return self.__instloop.resparse(size)