From ae342a0955387fad7e98982475e4337b9da1df71 Mon Sep 17 00:00:00 2001 From: Papoteur Date: Sun, 4 Oct 2020 11:57:57 +0200 Subject: Fix typo in command for creating persistent partition (mga#27354) and add delay after creating the partition --- backend/raw_write.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'backend') 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) -- cgit v1.2.1