Add additional update scripts to delta.tar
authorMateusz Moscicki <m.moscicki2@partner.samsung.com>
Tue, 15 Feb 2022 13:24:37 +0000 (14:24 +0100)
committerKarol Lewandowski <k.lewandowsk@samsung.com>
Tue, 22 Feb 2022 12:40:36 +0000 (12:40 +0000)
Scripts:

  upgrade-fota.sh
  upgrade-partial.sh
  upgrade-prepare-partitions.sh

must be supplied in delta.tar file to run their latest version.

Change-Id: I61772f1ec5bfdeb3e4cfadd2c784c448a66a3d69

mk_delta/common/bin/mk_delta.sh

index a730cf4..4f50e77 100755 (executable)
@@ -358,6 +358,9 @@ do
        #--- extract files which would be appended to delta.tar ---
        echo "Extract binaries for update from images"
        fn_extract_from_image rootfs.img /usr/bin/upgrade-trigger.sh
+       fn_extract_from_image rootfs.img /usr/bin/upgrade-fota.sh
+       fn_extract_from_image rootfs.img /usr/bin/upgrade-partial.sh
+       fn_extract_from_image rootfs.img /usr/bin/upgrade-prepare-partitions.sh
        fn_extract_from_image ramdisk-recovery.img /usr/bin/delta.ua
 
        #--- archive result directory ---