platform/core/system/upgrade.git
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

19 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

21 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

21 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

21 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

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