aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPapoteur <papoteur@mageia.org>2020-07-20 09:07:42 +0200
committerPapoteur <papoteur@mageia.org>2020-07-20 09:07:42 +0200
commit05ad27836e1648614678d115360a70e87df9128f (patch)
tree7cba53ffdad6c7f5c7613d394feaf3434c06cb94
parentf38535229e5b25bc2446ec5940985f9e982c3049 (diff)
downloadisodumper-05ad27836e1648614678d115360a70e87df9128f.tar
isodumper-05ad27836e1648614678d115360a70e87df9128f.tar.gz
isodumper-05ad27836e1648614678d115360a70e87df9128f.tar.bz2
isodumper-05ad27836e1648614678d115360a70e87df9128f.tar.xz
isodumper-05ad27836e1648614678d115360a70e87df9128f.zip
Add unmount command before eject (mag#26974)
-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: