diff options
author | Papoteur <papoteur@mageia.org> | 2020-07-20 09:07:42 +0200 |
---|---|---|
committer | Papoteur <papoteur@mageia.org> | 2020-07-20 09:07:42 +0200 |
commit | 05ad27836e1648614678d115360a70e87df9128f (patch) | |
tree | 7cba53ffdad6c7f5c7613d394feaf3434c06cb94 | |
parent | f38535229e5b25bc2446ec5940985f9e982c3049 (diff) | |
download | isodumper-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-x | lib/isodumper.py | 11 |
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: |