diff options
author | Papoteur <papoteur@mageia.org> | 2020-10-10 13:37:07 +0200 |
---|---|---|
committer | Papoteur <papoteur@mageia.org> | 2020-10-10 13:37:07 +0200 |
commit | 441db2aadcac8159b288dc8a6c2a24e170e7671e (patch) | |
tree | 89a72d7a20ffa39269c68fcac47c121a15497fa1 /backend/raw_write.py | |
parent | 194a1e4f3206bcd69a0d29a831d009d0aad49536 (diff) | |
download | isodumper-441db2aadcac8159b288dc8a6c2a24e170e7671e.tar isodumper-441db2aadcac8159b288dc8a6c2a24e170e7671e.tar.gz isodumper-441db2aadcac8159b288dc8a6c2a24e170e7671e.tar.bz2 isodumper-441db2aadcac8159b288dc8a6c2a24e170e7671e.tar.xz isodumper-441db2aadcac8159b288dc8a6c2a24e170e7671e.zip |
Force the format operation even if partition already exists
Diffstat (limited to 'backend/raw_write.py')
-rwxr-xr-x | backend/raw_write.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/backend/raw_write.py b/backend/raw_write.py index 0bdaf81..4428d67 100755 --- a/backend/raw_write.py +++ b/backend/raw_write.py @@ -281,7 +281,7 @@ class Dumper(object): self._progress = 50 if key == "": # example mkfs.ext4 -L mgalive-persist /dev/sdf3 - process = Popen(['mkfs.ext4','-L', label, target+"3"],stderr=PIPE) + process = Popen(['mkfs.ext4', "-q",'-F','-L', label, target+"3"],stderr=PIPE) outs, errs = process.communicate() working=True while working: @@ -307,7 +307,7 @@ class Dumper(object): # example cryptsetup luksFormat /dev/sdb3 print("Crypt key provided",file=sys.stderr) base_target = os.path.basename(target) + "3" - process = Popen(['cryptsetup','luksFormat','-q', target+"3", '-d', '-'],stdin=PIPE, stderr=PIPE) + process = Popen(['cryptsetup','luksFormat','-q', target+"3", '-d', '-'],stdin=PIPE, stderr=PIPE) outs, errs = process.communicate(input=key.encode('utf-8')) working=True while working: @@ -348,7 +348,7 @@ class Dumper(object): return # mkfs.ext4 -L mgalive-persist /dev/mapper/crypt_sdb3 - process = Popen(['mkfs.ext4','-L', label, '/dev/mapper/crypt_' + base_target],stderr=PIPE) + process = Popen(['mkfs.ext4','-q','-F','-L', label, '/dev/mapper/crypt_' + base_target],stderr=PIPE) outs, errs = process.communicate() working=True while working: |