aboutsummaryrefslogtreecommitdiffstats
path: root/lib/isodumper.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/isodumper.py')
-rwxr-xr-xlib/isodumper.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/isodumper.py b/lib/isodumper.py
index 0d940c9..fc5ef4d 100755
--- a/lib/isodumper.py
+++ b/lib/isodumper.py
@@ -504,7 +504,9 @@ class IsoDumper(basedialog.BaseDialog):
self.logger(message)
logging.warning(message)
else:
+ self.logger(_("Adding encrypted persistent partition failed"))
self.logger(iface.message)
+ nowarning = False
else:
iface.do_persistence(target, self.partition_label.value(), "")
while not iface.done:
@@ -512,7 +514,12 @@ class IsoDumper(basedialog.BaseDialog):
self.progress.setValue(progress)
self.dialog.pollEvent()
time.sleep(.5)
- message = _("Added persistent partition")
+ if iface.state:
+ message = _("Added persistent partition")
+ else:
+ message = _("Adding persistent partition failed")
+ self.logger(iface.message)
+ nowarning = False
self.logger(message)
logging.warning(message)
# Unmount if partitions are automatically mounted and then eject