Lines Matching full:script
94 Insert the contents of file at the end of the update script.
119 not mount the OEM partition in the updater-script. This should be very
429 def WriteMountOemScript(self, script):
432 script.Mount("/oem", recovery_mount_options)
434 def WriteDeviceAssertions(self, script, oem_no_mount):
437 script.AssertDevice(self.device)
453 script.AssertOemProperty(prop, values, oem_no_mount)
550 brillo_update_payload script; or None.
574 AssertionError: On any failure when calling brillo_update_payload script.
667 def _WriteRecoveryImageToBoot(script, output_zip):
693 script.WriteRawImage("/boot", recovery_two_step_img_name)
697 script.WriteRawImage("/boot", "recovery.img")
731 def WriteFingerprintAssertion(script, target_info, source_info):
736 script.AssertSomeFingerprint(
739 script.AssertSomeThumbprint(
743 script.AssertFingerprintOrThumbprint(
747 script.AssertFingerprintOrThumbprint(
858 script = edify_generator.EdifyGenerator(target_api_version, target_info)
861 target_info.WriteMountOemScript(script)
877 script=script,
887 script.AssertOlderBuild(ts, ts_text)
889 target_info.WriteDeviceAssertions(script, OPTIONS.oem_no_mount)
893 # the order in which the generated script has things):
909 # complete script normally
922 script.AppendExtra("""
927 script.Comment("Stage 2/3")
928 script.WriteRawImage("/recovery", "recovery.img")
929 script.AppendExtra("""
936 script.Comment("Stage 3/3")
939 script.Print("Target: {}".format(target_info.fingerprint))
950 script.ShowProgress(system_progress, 0)
985 dynamic_partitions_diff.WriteScript(script, output_zip,
989 block_diff.WriteScript(script, output_zip,
1000 script.ShowProgress(0.05, 5)
1001 script.WriteRawImage("/boot", "boot.img")
1003 script.ShowProgress(0.2, 10)
1007 script.AppendExtra(OPTIONS.extra_script)
1009 script.UnmountAll()
1012 script.ShowProgress(0.1, 10)
1013 script.FormatPartition("/data")
1016 script.AppendExtra("""
1019 script.AppendExtra("else\n")
1022 script.Comment("Stage 1/3")
1023 _WriteRecoveryImageToBoot(script, output_zip)
1025 script.AppendExtra("""
1032 script.SetProgress(1)
1033 script.AddToZip(input_zip, output_zip, input_path=OPTIONS.updater_binary)
1034 metadata["ota-required-cache"] = str(script.required_cache)
1522 "Generating edify script for a source that can't install it.")
1524 script = edify_generator.EdifyGenerator(
1529 source_info.WriteMountOemScript(script)
1549 script=script,
1628 target_info.WriteDeviceAssertions(script, OPTIONS.oem_no_mount)
1632 # which is *not* the order in which the generated script has
1650 # complete script normally
1661 script.AppendExtra("""
1666 script.Comment("Stage 2/3")
1667 script.AppendExtra("sleep(20);\n")
1668 script.WriteRawImage("/recovery", "recovery.img")
1669 script.AppendExtra("""
1676 script.Comment("Stage 1/3")
1679 script.Print("Source: {}".format(source_info.fingerprint))
1680 script.Print("Target: {}".format(target_info.fingerprint))
1682 script.Print("Verifying current system...")
1686 WriteFingerprintAssertion(script, target_info, source_info)
1711 script.PatchPartitionCheck(
1720 script.CacheFreeSpaceCheck(max(size))
1726 _WriteRecoveryImageToBoot(script, output_zip)
1728 script.AppendExtra("""
1735 script.Comment("Stage 3/3")
1738 system_diff.WriteVerifyScript(script, touched_blocks_only=True)
1740 vendor_diff.WriteVerifyScript(script, touched_blocks_only=True)
1748 diff.WriteVerifyScript(script, touched_blocks_only=True)
1750 script.Comment("---- start making changes here ----")
1772 script, output_zip, write_verify_script=OPTIONS.verify)
1775 block_diff.WriteScript(script, output_zip,
1781 script.WriteRawImage("/boot", "boot.img")
1788 script.Print("Installing boot image...")
1789 script.WriteRawImage("/boot", "boot.img")
1795 script.Print("Patching boot image...")
1796 script.ShowProgress(0.1, 10)
1797 script.PatchPartition(
1810 script.AppendExtra(OPTIONS.extra_script)
1813 script.Print("Erasing user data...")
1814 script.FormatPartition("/data")
1817 script.AppendExtra("""
1823 script.SetProgress(1)
1827 script.AddToZip(source_zip, output_zip, input_path=OPTIONS.updater_binary)
1829 script.AddToZip(target_zip, output_zip, input_path=OPTIONS.updater_binary)
1830 metadata["ota-required-cache"] = str(script.required_cache)
1895 This allows brillo_update_payload script to skip writing all the postinstall