aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xlib/isodumper.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/lib/isodumper.py b/lib/isodumper.py
index b135a75..e0a829c 100755
--- a/lib/isodumper.py
+++ b/lib/isodumper.py
@@ -361,9 +361,14 @@ class IsoDumper(object):
else:
iface.do_persistence(target,"mgalive-persist", "")
self.logger(_("Added persistent partition"))
- #Eject
- self.u.eject(target)
- self.success()
+ #Unmount if partitions are automatically mounted and then eject
+ success, message = iface.do_unmount(target)
+ if success:
+ self.u.eject(target)
+ self.success()
+ else:
+ emergency(message)
+ self.restore()
else:
self.emergency(message)
else: