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

Commit 97a620b6 authored by Koushik Dutta's avatar Koushik Dutta Committed by Steve Kondik
Browse files

CWR does not support writing a partition from memory. Use /tmp to store the...

CWR does not support writing a partition from memory. Use /tmp to store the extracted file, then write it.
parent 65457248
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -200,7 +200,8 @@ class EdifyGenerator(object):
      args = {'device': p.device, 'fn': fn}
      if partition_type == "MTD":
        self.script.append(
            'write_raw_image(package_extract_file("%(fn)s"), "%(device)s");'
            'package_extract_file("%(fn)s", "/tmp/boot.img");'
            'write_raw_image("/tmp/boot.img", "%(device)s");' % args
            % args)
      elif partition_type == "EMMC":
        self.script.append(