summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
Mateusz Moscicki [Thu, 28 Sep 2023 14:02:35 +0000 (16:02 +0200)]
Remove installed ISU package if the new Tizen does not contain it
Change-Id: I60f957afb64c438ab99fff52272a83a4e6841e2c
Mateusz Moscicki [Fri, 1 Sep 2023 11:42:16 +0000 (13:42 +0200)]
Add support for /etc/isu/upgrade.cfg
Configuration file /etc/isu/upgrade.conf specifies what fields will be
checked when verifying the compatiblity of the ISU package during OS
Upgrade.
Fields that should be taken into account should be specified as comma
separated list for option:
platform_major_version_fields=
Change-Id: I7c0251117516080b6d362991770cc6abff113d5e
Mateusz Moscicki [Mon, 7 Aug 2023 09:31:22 +0000 (11:31 +0200)]
Remove ISU packages during major OS upgrade
If the system release name has changed, remove incompatible packages, as
they may not be compatible with the new system version.
Change-Id: I43663bda0f50fbdcd608cd7e65881bd644b36476
Mateusz Moscicki [Thu, 11 May 2023 11:49:03 +0000 (13:49 +0200)]
rw-upgrade: Remove deprecated ISU Pkgs after OS upgrade
Change-Id: Ibe1a96ce2f29a64348a02ab95172e17c69870f66
Mateusz Moscicki [Wed, 10 May 2023 12:02:24 +0000 (14:02 +0200)]
upgrade-apply: Stop copying data twice
In case the destination partition is the clone of the source partition,
then there is no need to copy data again, because it is already in
place.
Change-Id: I31efe018a76f1237452109fd463056c949e88bf9
Karol Lewandowski [Wed, 19 Jul 2023 22:45:16 +0000 (00:45 +0200)]
Switch to openssl3
Change-Id: I0008df12ce2bad49c966dcfd57979f090ae69319
Mateusz Moscicki [Fri, 3 Feb 2023 12:57:40 +0000 (13:57 +0100)]
Version 7.5.7
Change-Id: Ib3c0aad68a42ad69846b4c8297b2d66027cb46a0
Karol Lewandowski [Tue, 20 Dec 2022 22:57:08 +0000 (23:57 +0100)]
upgrade-apply-deltafs: Drop executable bit from file permissions
Change-Id: Ib46ba63a39620840f09c226a5965897315c762a5
Mateusz Moscicki [Fri, 3 Feb 2023 12:04:24 +0000 (13:04 +0100)]
upgrade-apply-deltafs: Fix coverity issues
Change-Id: I40ca168f50b981f359a69d31389a741ee74c09cb
Mateusz Moscicki [Mon, 30 Jan 2023 14:45:23 +0000 (15:45 +0100)]
upgrade-apply-deltafs: Fix memory leak
Change-Id: Ifbcc809a3888c76032ff9b91a5b6b9c57f0055f2
Mateusz Moscicki [Thu, 26 Jan 2023 09:21:18 +0000 (10:21 +0100)]
upgrade-apply-deltafs: Return an error when attribute file cannot be opened
Change-Id: I3c2c65878c14924ba60d50d0603cf8364d455778
Karol Lewandowski [Tue, 18 Oct 2022 21:53:37 +0000 (23:53 +0200)]
Add Dockerfile to make it easy to build host version of upgrade-apply and upgrade-apply-deltafs
This is supposed to be used as part of CI.
Change-Id: If69c1e75002297773fbfc11434e4ab7162fb2d02
Karol Lewandowski [Tue, 31 Jan 2023 17:02:23 +0000 (18:02 +0100)]
cmake: Install upgrade-apply-deltafs to default location
Change-Id: I41e10c4093098e5c1402e1f9f636dbf39e4914e2
Karol Lewandowski [Thu, 2 Feb 2023 11:03:06 +0000 (12:03 +0100)]
cmake: Explicitly set install prefix to /usr
Change-Id: Ia5f6949128eb7ccd95220a8e59cfac424f7c750c
Mateusz Moscicki [Mon, 16 Jan 2023 16:38:55 +0000 (17:38 +0100)]
Version 7.5.6
Change-Id: I77ea1541ccb7388d5a3f930499e0bf1ff36487ba
Mateusz Moscicki [Thu, 19 Jan 2023 09:34:55 +0000 (10:34 +0100)]
Fix SVACE issues
Change-Id: Ied2611d4afd457651b41f0aa068c8b230973118f
Mateusz Moscicki [Mon, 16 Jan 2023 16:32:09 +0000 (17:32 +0100)]
Use delta-verifier provided in the delta archive
Change-Id: I0fb336f6126f4727b473b1e2a1cfdf995aee42ed
Mateusz Mościcki [Tue, 10 Jan 2023 13:23:29 +0000 (13:23 +0000)]
Merge changes I272886ee,I817fbcfe,I90795b82,I2cfcb411 into tizen
* changes:
upgrade-apply-deltafs: Fix missleading debug message in SS_Unlink()
upgrade-apply-deltafs: Stop trying to apply attributes after a faluire
upgrade-apply-deltafs: Stop upgrade process immediately after failure
Fail DELTA_FS type upgrade if there is not enough disk space
Antoni Adaszkiewicz [Tue, 10 Jan 2023 12:32:45 +0000 (13:32 +0100)]
upgrade-apply-deltafs: Fix missleading debug message in SS_Unlink()
ENOENT is handled by upgrade-apply-deltafs, but previous debug
messages suggested that ENOENT was an error.
Change-Id: I272886ee2f66d4efb0ee64b13af018c98b6362a2
Antoni Adaszkiewicz [Tue, 10 Jan 2023 11:30:43 +0000 (12:30 +0100)]
upgrade-apply-deltafs: Stop trying to apply attributes after a faluire
Previously we tried to apply attributes even after previous failures to
try to ensure a successful boot in order to retry upgrade process.
Currently when retrying to upgrade we start from the ground up as
thre are recovery mechanisms available (getting the system to
pre-upgrade state).
Change-Id: I817fbcfecfcaea9ab65570128b15a149df31ac91
Antoni Adaszkiewicz [Tue, 10 Jan 2023 10:37:12 +0000 (11:37 +0100)]
upgrade-apply-deltafs: Stop upgrade process immediately after failure
Previously even after critical failures (e.g. no space left) delta
would still continue be applied (with no chance of success at the end)
Change-Id: I90795b82c2bc276f6f4a5f701af1aa17b71e8bef
Antoni Adaszkiewicz [Thu, 5 Jan 2023 15:35:39 +0000 (16:35 +0100)]
Fail DELTA_FS type upgrade if there is not enough disk space
Change-Id: I2cfcb4113093aab111e64677e453c65892e97a26
Karol Lewandowski [Thu, 5 Jan 2023 10:46:29 +0000 (10:46 +0000)]
Merge "Drop redundant parts of CMake for host build" into tizen
Karol Lewandowski [Thu, 5 Jan 2023 10:46:24 +0000 (10:46 +0000)]
Merge "upgrade-apply-deltafs: Add minor changes in CMakeList.host-build" into tizen
Jaehoon Chung [Thu, 5 Jan 2023 01:18:10 +0000 (10:18 +0900)]
README: fix typo in README file
Fix typo in README file.
Change-Id: Idb88fe002271ef79e62577085ff5f158bbd2f820
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Karol Lewandowski [Wed, 4 Jan 2023 20:36:59 +0000 (21:36 +0100)]
Drop redundant parts of CMake for host build
Change-Id: Ic0f819cbadccffc6fa42e6d167e07441ce93020f
Antoni Adaszkiewicz [Tue, 3 Jan 2023 15:44:15 +0000 (16:44 +0100)]
upgrade-apply-deltafs: Add minor changes in CMakeList.host-build
This change was needed due to dropping LZMA support in DELTA_FS
Change-Id: I9a14fb7651f431dfd765e657f20a2e545056d80a
Karol Lewandowski [Wed, 4 Jan 2023 20:19:07 +0000 (20:19 +0000)]
Merge "upgrade-apply-deltafs: Fix misleading debug message" into tizen
Jaehoon Chung [Wed, 4 Jan 2023 11:03:17 +0000 (20:03 +0900)]
Remove liblzma-tool dependency in host-build
Remove liblzma-tool dependency in host-build.
lzma doesn't support anymore.
Change-Id: Ifd05f3a48e9a1f050173ce7c5059f009b999562e
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Jaehoon Chung [Wed, 4 Jan 2023 11:03:09 +0000 (20:03 +0900)]
upgrade-apply-deltafs: Fix build warning
There are some warning message.
To clean codes, fix the build warning.
Change-Id: I0c7f79e12636dd4d8724ac169248448e0ff99cd0
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Antoni Adaszkiewicz [Mon, 2 Jan 2023 16:08:40 +0000 (17:08 +0100)]
upgrade-apply-deltafs: Fix misleading debug message
ENOENT and EEXIST when using symlink() are expected and handled by
upgrade-apply-deltafs.
Change-Id: I154557186d3a7664c1f23777f5d0406f5cf37bf6
Antoni Adaszkiewicz [Fri, 23 Dec 2022 10:32:50 +0000 (11:32 +0100)]
upgrade-apply-deltafs: Add a README file
Change-Id: I1d76ad615a9f40b4de87f9b1940eb57611337b00
Mateusz Moscicki [Thu, 22 Dec 2022 15:05:19 +0000 (16:05 +0100)]
Version 7.5.5
Change-Id: I4dbc18aba5739f437538752eb80473f0bd614bf3
Mateusz Moscicki [Mon, 19 Dec 2022 15:53:00 +0000 (16:53 +0100)]
brotli: Add cleanup after decompression is complete
Change-Id: Ice1f953ae36e7b9abfffe8d674379748a946be41
Mateusz Moscicki [Fri, 9 Dec 2022 14:20:04 +0000 (15:20 +0100)]
Remove dependencies to LZMA
Change-Id: If86e7acaac441600e916b561c24f6f28d88700e9
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
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
Antoni Adaszkiewicz [Mon, 5 Dec 2022 14:21:34 +0000 (15:21 +0100)]
upgrade-apply-deltafs: Drop unused legacy code
Change-Id: I715f7b534fbca97707410480c002f0f56a58281c
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
Antoni Adaszkiewicz [Thu, 1 Dec 2022 16:57:54 +0000 (17:57 +0100)]
Version 7.5.4
Change-Id: Ie75de7cfcb50486a3934e0f23ffee6e754adc9a5
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
Antoni Adaszkiewicz [Thu, 13 Oct 2022 10:34:36 +0000 (12:34 +0200)]
upgrade-apply-deltafs: Drop legacy code
Change-Id: I3783b5c220b55180ac1bc79c69ab2b22068a84fe
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
Antoni Adaszkiewicz [Mon, 10 Oct 2022 14:06:23 +0000 (16:06 +0200)]
upgrade-apply-deltafs: Fix compiler warnings
Change-Id: I6249d461d5f4b7b1c342cebd8dcffe4c30a4511d
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
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
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
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
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
Antoni Adaszkiewicz [Thu, 1 Sep 2022 13:36:01 +0000 (15:36 +0200)]
upgrade-apply-deltafs: Drop legacy code
Change-Id: I92f09fe0eaf2556db36ebda7c0d9308f7c13fdee
Antoni Adaszkiewicz [Thu, 1 Sep 2022 12:28:56 +0000 (14:28 +0200)]
upgrade-apply-deltafs: Redirect logs to stdout
Change-Id: I3df168efd1d8a645bfd7f9c391e9b7d0987cf23e
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
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
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
Mateusz Moscicki [Mon, 5 Sep 2022 12:11:54 +0000 (14:11 +0200)]
Remove support for non-A/B upgrade
Change-Id: I67bb1f3a27aea2af495bb584d8044035fbc73bb9
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
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
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
Tizen Infrastructure [Tue, 26 Jul 2022 01:57:11 +0000 (01:57 +0000)]
Initial empty repository