import struct
import tempfile
import commands
+import subprocess
VERSION = 0
MAGIC_NUMBER = 0xb001b001
table_file.flush()
cmd = " ".join((signer_path, table_file.name, key_path, signature_file.name))
print cmd
- run(cmd)
+ runcmd = cmd.split()
+ sp = subprocess.Popen(runcmd)
+ sp.wait()
return signature_file.read()
def build_verity_table(block_device, data_blocks, root_hash, salt):