aboutsummaryrefslogtreecommitdiffstats
path: root/backend
diff options
context:
space:
mode:
Diffstat (limited to 'backend')
-rwxr-xr-xbackend/raw_write.py6
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: