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, 6 insertions, 1 deletions
diff --git a/backend/raw_write.py b/backend/raw_write.py
index d9a5a19..b8f307d 100755
--- a/backend/raw_write.py
+++ b/backend/raw_write.py
@@ -30,7 +30,7 @@
import os
import io
import gettext
-from subprocess import call
+from subprocess import call, Popen, PIPE
import hashlib
import gnupg
@@ -221,6 +221,11 @@ class Dumper(object):
self.return_state = True
self.finished.set()
+ def _do_persistence(self, target):
+ p = Popen(["fdisk",target], stdin = PIPE)
+ p.communicate(input=b'n\np\n3\n\n\nw\n')
+
+
def __init__(self):
gettext.install('isodumper', localedir='/usr/share/locale')
# Operation running