platform/core/system/upgrade.git
17 months agoupgrade-apply-deltafs: Fail update if decompression fails 10/285210/2 accepted/tizen/unified/20221220.041635
Antoni Adaszkiewicz [Wed, 7 Dec 2022 12:37:38 +0000 (13:37 +0100)]
upgrade-apply-deltafs: Fail update if decompression fails

Prevoiusly, if "system.7z" file (new files archive) decompression
failed, update would still continue.

Change-Id: I5caf02a3170be84048a26e33301a3a0dffddcb9d

17 months agoupgrade-apply-deltafs: Fix a new files archive decompression bug 05/285205/4
Antoni Adaszkiewicz [Wed, 7 Dec 2022 11:38:48 +0000 (12:38 +0100)]
upgrade-apply-deltafs: Fix a new files archive decompression bug

In rare cases (in deltas without any diffs) "sysytem.7z" archive file
would be the first file in its image directory. In this situation, a
wrong offset for the file (relative to delta) would be assumed, and as
a result a wrong file would be targeted for decompression.

Change-Id: I470854c92f9c0a1afe0bdbae134f4e63347916de

17 months agoupgrade-apply-deltafs: Drop unused legacy code 61/285061/4
Antoni Adaszkiewicz [Mon, 5 Dec 2022 14:21:34 +0000 (15:21 +0100)]
upgrade-apply-deltafs: Drop unused legacy code

Change-Id: I715f7b534fbca97707410480c002f0f56a58281c

17 months agoupgrade-apply-deltafs: Change new files archive offset logic 60/285060/5
Antoni Adaszkiewicz [Mon, 5 Dec 2022 14:12:12 +0000 (15:12 +0100)]
upgrade-apply-deltafs: Change new files archive offset logic

Now offset of "system.7z" archive (relative to delta) will be set to -1
if it is not found in delta. This allows said offset to be 0 and be
considered correcct (even though this cannot happen currently as there
are always crucial files at the begining of a delta).

Change-Id: I5faba74558e120eea6bec9d76ad1ce152e46f927

17 months agoVersion 7.5.4 53/284953/2
Antoni Adaszkiewicz [Thu, 1 Dec 2022 16:57:54 +0000 (17:57 +0100)]
Version 7.5.4

Change-Id: Ie75de7cfcb50486a3934e0f23ffee6e754adc9a5

17 months agoAdd delta-device compatiability verification to upgrade-trigger.sh, using delta-verif... 30/283330/6
Antoni Adaszkiewicz [Mon, 24 Oct 2022 10:33:55 +0000 (12:33 +0200)]
Add delta-device compatiability verification to upgrade-trigger.sh, using delta-verifier binary
from update-control

Change-Id: I2c06533e2c7f483b886a1557a0078d8662698277

18 months agoupgrade-apply-deltafs: Drop legacy code 46/282946/3
Antoni Adaszkiewicz [Thu, 13 Oct 2022 10:34:36 +0000 (12:34 +0200)]
upgrade-apply-deltafs: Drop legacy code

Change-Id: I3783b5c220b55180ac1bc79c69ab2b22068a84fe

18 months agoupgrade-apply-deltafs: Fix delta folder bug - if the given path to delta archive... 16/282716/4
Antoni Adaszkiewicz [Mon, 10 Oct 2022 18:17:59 +0000 (20:17 +0200)]
upgrade-apply-deltafs: Fix delta folder bug - if the given path to delta archive wasn't
absolute, in some instances it would cause this program to create an additional directory in
currently upgraded partition (with the same name as the directory the delta was in)

Change-Id: I8648504fa533f1f121f85af31aa40f2f75bf6cb6

18 months agoupgrade-apply-deltafs: Fix compiler warnings 13/282713/3
Antoni Adaszkiewicz [Mon, 10 Oct 2022 14:06:23 +0000 (16:06 +0200)]
upgrade-apply-deltafs: Fix compiler warnings

Change-Id: I6249d461d5f4b7b1c342cebd8dcffe4c30a4511d

18 months agoupgrade-apply-deltafs: Stop opening log file if logs are redirected to stdout and... 08/282708/4
Antoni Adaszkiewicz [Mon, 10 Oct 2022 09:31:13 +0000 (11:31 +0200)]
upgrade-apply-deltafs: Stop opening log file if logs are redirected to stdout and assume current directory as log directory for host

Change-Id: Iae411e68719b977e6941232b2f2c87b3ada552f1

18 months agoupgrade-apply-deltafs: Add possibility to build this binary on host by adding a cmake... 20/282620/7
Antoni Adaszkiewicz [Thu, 6 Oct 2022 12:35:50 +0000 (14:35 +0200)]
upgrade-apply-deltafs: Add possibility to build this binary on host by adding a cmake file

Change-Id: If634e2c3f8c171ac0f3a07a8d61f0e3723fc7ddf

18 months agoAllow scripts responsible for upgrading to work with upgrade-delta-fs binary 21/282221/2
Antoni Adaszkiewicz [Mon, 26 Sep 2022 13:04:56 +0000 (15:04 +0200)]
Allow scripts responsible for upgrading to work with upgrade-delta-fs binary

Change-Id: I1dfe8f4cb9a9739c18e05cdb988ebe45ef0aaa86

18 months agoupgrade-apply-deltafs: Rewrite code responsible for reading archive files (deltas... 94/281294/6
Antoni Adaszkiewicz [Thu, 8 Sep 2022 09:45:04 +0000 (11:45 +0200)]
upgrade-apply-deltafs: Rewrite code responsible for reading archive files (deltas in tar format) in
order to speed up patch application and to allow gziped archives

Changes include:
- removing the requirement for archives to be named "delta*"
- adding support for archives with .tar.gz and .tgz file extensions
- using libtar to read archives
- reducing the amount of times the archive is read
- dropping legacy code along the way

Change-Id: Ibbce6a7c36b5520dab21b113200113c48a6b2058

18 months agoupgrade-apply-deltafs: Change path handling to work with relative pathnames and remov... 95/280995/5
Antoni Adaszkiewicz [Tue, 6 Sep 2022 14:26:35 +0000 (16:26 +0200)]
upgrade-apply-deltafs: Change path handling to work with relative pathnames and remove the need
to mount upgraded partition on /run/upgrade-sysroot

Change-Id: Ifdb6c8a4d336fc7375f2a47409abd43d60be9997

18 months agoupgrade-apply-deltafs: Drop legacy code 50/280650/7
Antoni Adaszkiewicz [Thu, 1 Sep 2022 13:36:01 +0000 (15:36 +0200)]
upgrade-apply-deltafs: Drop legacy code

Change-Id: I92f09fe0eaf2556db36ebda7c0d9308f7c13fdee

18 months agoupgrade-apply-deltafs: Redirect logs to stdout 48/280648/7
Antoni Adaszkiewicz [Thu, 1 Sep 2022 12:28:56 +0000 (14:28 +0200)]
upgrade-apply-deltafs: Redirect logs to stdout

Change-Id: I3df168efd1d8a645bfd7f9c391e9b7d0987cf23e

18 months agoRename delta-ua directory to upgrade-apply-deltafs and delta.ua binary to upgrade... 35/280635/3
Antoni Adaszkiewicz [Thu, 1 Sep 2022 11:28:55 +0000 (13:28 +0200)]
Rename delta-ua directory to upgrade-apply-deltafs and delta.ua binary to upgrade-apply-deltafs

Change-Id: I0f7ad405d7a2cbc055fbd1649597c2f46fc52e9c

18 months agoAdd delta.ua - a binary to apply an upgrade of DELTA_FS type. 80/280480/6
Antoni Adaszkiewicz [Mon, 29 Aug 2022 15:21:28 +0000 (17:21 +0200)]
Add delta.ua - a binary to apply an upgrade of DELTA_FS type.

The binary is build with code previously from tota-ua and libtota, although some
changes were made. They include: changes to make delta.ua a command line tool
(reading given parameters instead of reading config files), changes to make delta.ua a tool
only applying the deltas and only applying them for one partition, adding support for handling
hardlinks (previously in cases where harlinks were present in a delta, upgrade wasn't guaranteed
to be successsful), removing code/files unused for update types other than DELTA_FS
and other more minor changes (e.g. removing unused functions)

Change-Id: Ice1e272a553abb5ebae4230eaffe82afc931b204

18 months agoAdd files from libtota and tota-ua, necessary for easier review of the next commit. 79/280479/3
Antoni Adaszkiewicz [Tue, 30 Aug 2022 15:21:01 +0000 (17:21 +0200)]
Add files from libtota and tota-ua, necessary for easier review of the next commit.
The code is imported from following:
-> platform/core/system/libtota, SHA1: d36348f
(ss_bsdiff: Change the search function)
-> platform/core/system/tota-ua, SHA1: 681435d
(Fix fprintf format warning)

Change-Id: I783799ed335f03bc69c287f6d85092b6dbff9b21

18 months agoRemove support for non-A/B upgrade 38/280838/3 accepted/tizen/unified/20221102.172725
Mateusz Moscicki [Mon, 5 Sep 2022 12:11:54 +0000 (14:11 +0200)]
Remove support for non-A/B upgrade

Change-Id: I67bb1f3a27aea2af495bb584d8044035fbc73bb9

20 months agoRename spec and package(s) to match repository name 53/280453/1 accepted/tizen_7.0_unified_hotfix tizen_7.0_hotfix accepted/tizen/7.0/unified/20221110.063322 accepted/tizen/7.0/unified/hotfix/20221116.105834 accepted/tizen/unified/20220831.023208 accepted/tizen/unified/20220901.021441 submit/tizen/20220830.134509 tizen_7.0_m2_release
Karol Lewandowski [Tue, 30 Aug 2022 08:23:49 +0000 (10:23 +0200)]
Rename spec and package(s) to match repository name

Change-Id: Id011a220bba07c9042fd59bd0bb61f009e6d0ea7

20 months agoImport system-rw-upgrade 55/280155/1
Karol Lewandowski [Wed, 24 Aug 2022 09:29:52 +0000 (11:29 +0200)]
Import system-rw-upgrade

This commit imports system-rw-upgrade from commit fbb4ba4cf ("Add critical log where upgrade
status is changing").

Following changes were made with repect to original repository:

 - move scripts and unit files under scripts/rw-upgrade

 - move logic behind installing scripts and unit files to scripts/rw-upgrade/CMakeLists.txt

 - depend only on UPGRADE_ variables

 - integrate build into new spec

Change-Id: I305fe67d2ac32df7d2b9d05b51b67a1fb808a68b

20 months agoImport tota-ua 92/280092/4
Karol Lewandowski [Tue, 23 Aug 2022 12:19:07 +0000 (14:19 +0200)]
Import tota-ua

This commit imports tota-ua from commit a0c2c06cf ("Add return 0
to log functions to prevent unexpected failure").

Following changes were made with repect to original tota-ua repository:

 - naming is adjusted (tota-ua -> upgrade/upgrade-engine)

 - delta.ua is dropped along with libtota depencency
   (currently it brings only unsupported and faulty delta_fs
   upgrade type)

 - actual programs are moved to src/ subdir, scripts moved to scripts/

 - CMakeFiles.txt are considerably simplified, dropping most of the
   duplication

Change-Id: If7da44c748e3e25b4519022fb292088ed8cbdcc0

21 months agoInitial empty repository master
Tizen Infrastructure [Tue, 26 Jul 2022 01:57:11 +0000 (01:57 +0000)]
Initial empty repository