Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 86153fac authored by Dan Pasanen's avatar Dan Pasanen
Browse files

Revert "build_image: Unbreak verity/FEC generation"

This reverts commit a1e00722.

Change-Id: I5a148f7d3636386a89bf7828beaff04c038d8728
parent 9c2a7fd2
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -52,7 +52,7 @@ def RunCommand(cmd):

def GetVerityFECSize(partition_size):
  cmd = "fec -s %d" % partition_size
  status, output = getstatusoutput(cmd)
  status, output = commands.getstatusoutput(cmd)
  if status:
    print output
    return False, 0
@@ -143,7 +143,7 @@ AdjustPartitionSizeForVerity.results = {}
def BuildVerityFEC(sparse_image_path, verity_path, verity_fec_path):
  cmd = "fec -e %s %s %s" % (sparse_image_path, verity_path, verity_fec_path)
  print cmd
  status, output = getstatusoutput(cmd)
  status, output = commands.getstatusoutput(cmd)
  if status:
    print "Could not build FEC data! Error: %s" % output
    return False
@@ -213,7 +213,7 @@ def Append2Simg(sparse_image_path, unsparse_image_path, error_message):
def Append(target, file_to_append, error_message):
  cmd = 'cat %s >> %s' % (file_to_append, target)
  print cmd
  status, output = getstatusoutput(cmd)
  status, output = commands.getstatusoutput(cmd)
  if status:
    print "%s: %s" % (error_message, output)
    return False