aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPapoteur <papoteur@mageia.org>2020-10-04 11:57:57 +0200
committerPapoteur <papoteur@mageia.org>2020-10-04 16:14:37 +0200
commitae342a0955387fad7e98982475e4337b9da1df71 (patch)
tree6b7716d4bd71296f41cb2d7e03c812571df6d749
parentb7141974769b76ef09268f01025990675e0c0be3 (diff)
downloadisodumper-ae342a0955387fad7e98982475e4337b9da1df71.tar
isodumper-ae342a0955387fad7e98982475e4337b9da1df71.tar.gz
isodumper-ae342a0955387fad7e98982475e4337b9da1df71.tar.bz2
isodumper-ae342a0955387fad7e98982475e4337b9da1df71.tar.xz
isodumper-ae342a0955387fad7e98982475e4337b9da1df71.zip
Fix typo in command for creating persistent partition (mga#27354) and add delay after creating the partition
-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)