From bec0f07516656d2964df26a59ae67a4aa97097c9 Mon Sep 17 00:00:00 2001 From: Kelvin Zhang Date: Wed, 31 Mar 2021 16:09:00 -0400 Subject: Add no postinstall option Test: th Change-Id: I63904fae1a6900a6fd7a079667332102f2bede55 --- scripts/update_device.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'scripts/update_device.py') diff --git a/scripts/update_device.py b/scripts/update_device.py index 074b91d6..b784b1bc 100755 --- a/scripts/update_device.py +++ b/scripts/update_device.py @@ -428,6 +428,8 @@ def main(): help='Update with the secondary payload in the package.') parser.add_argument('--no-slot-switch', action='store_true', help='Do not perform slot switch after the update.') + parser.add_argument('--no-postinstall', action='store_true', + help='Do not execute postinstall scripts after the update.') parser.add_argument('--allocate_only', action='store_true', help='Allocate space for this OTA, instead of actually \ applying the OTA.') @@ -472,6 +474,8 @@ def main(): if args.no_slot_switch: args.extra_headers += "\nSWITCH_SLOT_ON_REBOOT=0" + if args.no_postinstall: + args.extra_headers += "\nRUN_POST_INSTALL=0" with zipfile.ZipFile(args.otafile) as zfp: CARE_MAP_ENTRY_NAME = "care_map.pb" -- cgit v1.2.3