aboutsummaryrefslogtreecommitdiffstats
path: root/backend/raw_write.py
diff options
context:
space:
mode:
Diffstat (limited to 'backend/raw_write.py')
-rwxr-xr-xbackend/raw_write.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/backend/raw_write.py b/backend/raw_write.py
index 6537ba8..33279d7 100755
--- a/backend/raw_write.py
+++ b/backend/raw_write.py
@@ -261,11 +261,14 @@ class Dumper(object):
self.return_message = _("Error while doing persistent partition: ") + errs.decode('utf-8')
return
logging.debug("New partition created")
+
+ # Wait some time to propagate the info of new partition table
+ time.sleep(1.0)
if key == "":
# example mkfs.ext4 -L mgalive-persist /dev/sdf3
- process = Popen(['mkfs.ext4','-L', label, target+"3"],sterr=PIPE)
- outs, errs = p.communicate()
+ process = Popen(['mkfs.ext4','-L', label, target+"3"],stderr=PIPE)
+ outs, errs = process.communicate()
working=True
while working:
time.sleep(0.5)