platform/core/system/system-rw-update.git
6 years agorw-update-macro: support -r option for compatibility 73/167773/1 accepted/tizen_4.0_unified accepted/tizen/4.0/unified/20180124.154207 submit/tizen_4.0/20180123.063624
Sunmin Lee [Fri, 19 Jan 2018 06:40:23 +0000 (15:40 +0900)]
rw-update-macro: support -r option for compatibility

The -r option of restore_backup_file was removed and
it has restored directory recursively as default.
However, this option is still required to consider
compatibility.

Change-Id: I2d49628a107f11739c641e19033404c7d325c55d
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
6 years agoApply changes of rw-update-macro 11/165911/2 accepted/tizen/4.0/unified/20180110.233135 submit/tizen_4.0/20180105.070507 tizen_4.0.IoT.p2_release
Sunmin Lee [Fri, 5 Jan 2018 00:36:48 +0000 (09:36 +0900)]
Apply changes of rw-update-macro

According to recent patch, update-init.sh is required to be
changed a little.

Change-Id: I7b2a5ab1b6afc5ee3c1e9e41fba827090e9e7f92
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
6 years agoIntroduce rstsmack for update 10/165910/2
Sunmin Lee [Wed, 3 Jan 2018 08:32:17 +0000 (17:32 +0900)]
Introduce rstsmack for update

RW update macro requires rstsmack which restores smack label of
backed up file.

Change-Id: I2babf6412b92f714c4cabebd92efd0e21cddbe46
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
6 years agoUpdate rw-update-macro.inc 49/165249/2 submit/tizen_4.0/20180103.005612
Sunmin Lee [Wed, 27 Dec 2017 08:16:05 +0000 (17:16 +0900)]
Update rw-update-macro.inc

The options of restore_backup_file is changed to simplify the usage
 -r (deprecated): for now, always restore recursively if the target is directory
 -d (deprecated): for now, destination is always root(/)
 -f (new): the option for overwriting existing file

Change-Id: I473182a8be5de46c65970eba11677b725a52a7de
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
6 years agorw-update-macro: patch for version info 03/163603/2 submit/tizen_4.0/20171227.014353
Sunmin Lee [Tue, 12 Dec 2017 08:58:34 +0000 (17:58 +0900)]
rw-update-macro: patch for version info

This patch means two changes:
1) Take REL away which is not used in platform
2) Apply four-digit to version info: for compatibility

Change-Id: I77be4d796f324b4d1fe1603a369b408c16c3d8d0
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
6 years agoRelease 1.0.1 04/164604/2 accepted/tizen/4.0/unified/20171222.062731 submit/tizen_4.0/20171221.050631 submit/tizen_4.0/20171221.093123 submit/tizen_4.0/20171221.103518
Sunmin Lee [Tue, 19 Dec 2017 07:03:12 +0000 (16:03 +0900)]
Release 1.0.1

- Use the same path for update
- Divide result into log and result file
- rw-script-list: update hash values of scripts
- rw-udpate-macro: improve restore_backup_file helper

Change-Id: Ibf8c3b2683864d8579343ae10b2972471712e722
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
6 years agorw-update-macro: improve restore_backup_file helper 59/164459/2
Sunmin Lee [Mon, 18 Dec 2017 05:22:07 +0000 (14:22 +0900)]
rw-update-macro: improve restore_backup_file helper

This patch make rw-update-macro to consider the case of no smack
rule, and handle the file path properly.
In addition, the content of model-config was changed. This patch
also covers it.

Change-Id: Ief8d0e900fbcbb96df7ef1623f7b01b1a95b6098
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
6 years agorw-script-list: update hash values of scripts 58/164458/1
Sunmin Lee [Mon, 18 Dec 2017 01:43:05 +0000 (10:43 +0900)]
rw-script-list: update hash values of scripts

Change-Id: I4d496522c9ee63c18088aa3fb290277029453bbe
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
6 years agoDivide result into log and result file 57/164457/1
Sunmin Lee [Mon, 18 Dec 2017 01:16:59 +0000 (10:16 +0900)]
Divide result into log and result file

Change-Id: I1b1659f102f6f4b88a68365d65fcd7714e2b574f
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
6 years agoUse the same path for update 56/164456/1
Sunmin Lee [Mon, 18 Dec 2017 01:10:35 +0000 (10:10 +0900)]
Use the same path for update

Change-Id: I0668efafa71b6b56ec7c1136641cc2b8a9d297b8
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
6 years agoMake recovery directory before updating 15/162415/2
Kichan Kwon [Fri, 1 Dec 2017 02:51:54 +0000 (11:51 +0900)]
Make recovery directory before updating

- It is made by initrd-fota, but we can use it without initrd-fota

Change-Id: I27eaf314b5d2c826699697fa2778888a77ab988d
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
6 years agoRemove unused script 80/158680/1
Sunmin Lee [Thu, 2 Nov 2017 10:45:20 +0000 (19:45 +0900)]
Remove unused script

Change-Id: Ic9ac75bad457020f40439610d33c4e3bf9d9f97a
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
6 years agoRelease 1.0.0 32/157632/1
Sunmin Lee [Wed, 25 Oct 2017 07:52:19 +0000 (16:52 +0900)]
Release 1.0.0

system-rw-update for Tizen 4.0 is released

Change-Id: Iec408edb9fa818406138089baa7bb1cbcd7ae6ff
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
6 years agoIntroduce RW script verification 54/155854/2 accepted/tizen/4.0/unified/20171017.212334 submit/tizen_4.0/20171017.004145 tizen_4.0.m2_release
Sunmin Lee [Mon, 16 Oct 2017 09:55:34 +0000 (18:55 +0900)]
Introduce RW script verification

This patch for verification of RW scripts using thier hash value.
The script which is not listed at predefined list file
would be skipped.

* The script list of this patch is generated from below image:
 tizen-4.0-unified_20171013.5_wearable-wayland-armv7l-tw1

Change-Id: I4cf62bee0dcbc62a650c2980fcf5af0bcaf75ef3
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
6 years agoIntroduce UX for RW update 92/152192/11 accepted/tizen/4.0/unified/20171011.150243 submit/tizen_4.0/20171010.092649 submit/tizen_4.0/20171010.115426 tizen_4.0.IoT.p1_release
Kichan Kwon [Mon, 25 Sep 2017 08:08:14 +0000 (17:08 +0900)]
Introduce UX for RW update

It shows these informations below
  - Updated scripts / Total scripts
  - Progress circle
Current progress is stored in tmp

Change-Id: Ice8a0ab17c2a125a83b52cb91d504ade497396e2
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
6 years agoSet SmackProcessLabel for offline-update service 06/152706/1 accepted/tizen/4.0/unified/20170929.075435 submit/tizen_4.0/20170927.023806
Sunmin Lee [Wed, 27 Sep 2017 02:28:04 +0000 (11:28 +0900)]
Set SmackProcessLabel for offline-update service

offline-update.service requires privileged smack label.

Change-Id: Ie934aa7756c9cb51de4ce54e75ba3d8b77b8e8ba
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
6 years agoPatch for automated upgrade 83/145783/2 accepted/tizen/4.0/unified/20170904.143914 accepted/tizen/unified/20170824.172333 submit/tizen/20170824.041254 submit/tizen_4.0/20170904.041827
Sunmin Lee [Wed, 23 Aug 2017 23:32:13 +0000 (08:32 +0900)]
Patch for automated upgrade

The RW update had stopped after initialization for debugging.
This patch automates RW update but makes a short pause
after upgrade-init.
Developer can enter to debug mode by creating debug mode file
(/opt/usr/.upgdebug) during pausing.

Change-Id: Ideaaa703f975d5f1c17791e3fa7f495f443366d7
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
6 years agoSpecify SmackProcessLabel of udev init service 47/145447/1 accepted/tizen/4.0/unified/20170829.020152 accepted/tizen/unified/20170823.031620 submit/tizen/20170822.111243 submit/tizen_4.0/20170828.100004
Sunmin Lee [Tue, 22 Aug 2017 09:35:20 +0000 (18:35 +0900)]
Specify SmackProcessLabel of udev init service

The udev init service which creates rule file doesn't need
to be privileged. Specify it to "System" process.

Change-Id: Ib4c7f40ec9122d0235bb3191588e0e3b0e604dea
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
6 years agoUpdate permission of DB directory in init step 54/144954/1 accepted/tizen/unified/20170821.051233 submit/tizen/20170818.122914
Sunmin Lee [Fri, 18 Aug 2017 12:12:16 +0000 (21:12 +0900)]
Update permission of DB directory in init step

Change-Id: I942de000ceec9b8c4b84761542c6ae565302c0ad
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
6 years agoDo not EXIT in rw-update-macro 85/144885/1 submit/tizen/20170818.082249
Sunmin Lee [Fri, 18 Aug 2017 07:52:32 +0000 (16:52 +0900)]
Do not EXIT in rw-update-macro

The exit call in RW macro function causes
termination of caller script.
The restore_backup_file function should be terminated with return.

Change-Id: I81e4fdecf4b371ef212f3983d8b856ba2df9ba5c
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
6 years agoTemporary patch for RW updater SDB debugging in the device with SWITCH class and... 70/142570/1 accepted/tizen/unified/20170811.133005 submit/tizen/20170808.063544
Kunhoon Baik [Fri, 4 Aug 2017 08:39:07 +0000 (17:39 +0900)]
Temporary patch for RW updater SDB debugging in the device with SWITCH class and SLP gadget.

At this moments, USB SDB debugging feature for RW updater is supported in the device with SWITCH class and SLP gadget.
Thus, we need to make a target specific package like system-rw-update-helper-for-XXXX.
For generic solution, mini-usb-manager using USB-client HAL should be created for USB SDB debugging feature for RW updater.

Anyway, at this moment, it will be created in all device if there are "no such SWITCH rule file" in the device.

Change-Id: I1d4dcbed238ca69c46f55162c2c521fcf1188c2c

6 years agoApply platform version path: /opt/etc/version 62/141762/2 accepted/tizen/4.0/unified/20170816.012232 accepted/tizen/unified/20170803.075314 submit/tizen/20170802.054958 submit/tizen_4.0/20170811.094300
Sunmin Lee [Tue, 1 Aug 2017 09:17:37 +0000 (18:17 +0900)]
Apply platform version path: /opt/etc/version

Following is generic mechanism

1. The version file (/opt/etc/version) should be created by RO-updater before
 updating RO. (if there are already existed, just verify the file or skipping
 creating file)
2. And then, it should be used by RW upgrade script.
3. And then, it should be updated by RW-updater after upgrade is completed

However, this code makes /opt/etc/version file in image creation instead of
RO-updater. The reason is for supporting HOME BINARY updater
(skipping RO updater)

Thus, Follwing is mechanism for HOME BINARY
1. The version file (/opt/etc/version) should be created by image creation.
2. And then, it should be used by RW upgrade script.
3. And then, it should be updated by RW-updater after upgrade is completed

Basically, if the file (/opt/etc/version) is not existed in old binary,
HOME BINARY updater is not supported.

Commented-by: Kunhoon Baik <knhoon.baik@samsung.com>
Change-Id: Ie298f3e175b34582ffd38189952a6b125eca7cbe
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
7 years agoUdev sdb service should run upgrade mode only 58/139758/1 accepted/tizen/unified/20170721.024538 submit/tizen/20170720.093148
Sunmin Lee [Thu, 20 Jul 2017 09:08:26 +0000 (18:08 +0900)]
Udev sdb service should run upgrade mode only

Udev rule for SDB connection is required in upgrade only.
It should be moved to upgrade target.

Change-Id: Ie57d43dd604ce49a92d0c365d91684b5c91b3e27
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
7 years agoInstall a rule file for SDB debugging 19/139419/3 submit/tizen/20170720.045231
Sunmin Lee [Wed, 19 Jul 2017 01:05:55 +0000 (10:05 +0900)]
Install a rule file for SDB debugging

From Tizen 4.0, a rule file for SDB debugging would be installed
by default as symlink. SDB debugging feature would be handled by
existence of actual path which is installed by udev-sdb-init service.

Change-Id: Ic49aa7ea0b099149c288b14d4b825bcd0e6d3dce
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
7 years agoPatch for 3.0 to 4.0 68/139268/3
Sunmin Lee [Tue, 18 Jul 2017 00:04:42 +0000 (09:04 +0900)]
Patch for 3.0 to 4.0

From Tizen 4.0, there are some changes in system RW update:
 - No /system-update link: use /usr/share/upgrade directly
 - RW update helper macro is introduced
 - No need to backup home directory

Change-Id: Icd49e260674383a5e8c887583d6381180134232c
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
7 years agoInitial system-rw-update files 24/108324/5 accepted/tizen_common accepted/tizen_ivi accepted/tizen_mobile accepted/tizen_tv accepted/tizen_wearable accepted/tizen/common/20170303.090738 accepted/tizen/ivi/20170303.005241 accepted/tizen/mobile/20170303.005203 accepted/tizen/tv/20170303.005208 accepted/tizen/unified/20170309.033543 accepted/tizen/wearable/20170303.005225 submit/tizen/20170303.002552 submit/tizen_unified/20170308.100409 tizen_4.0.m1_release
Sunmin Lee [Wed, 4 Jan 2017 05:19:47 +0000 (14:19 +0900)]
Initial system-rw-update files

Add files for system RW update
- service files for system-update.target
- scripts for system-update services
- make_upgrade_image.sh: converts platform image
  to RW update image

Change-Id: I26ee79755cda73fa02e01fcb5316da87cbb123da
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
7 years agoInitial empty repository master
Tizen Infrastructure [Wed, 4 Jan 2017 04:07:05 +0000 (20:07 -0800)]
Initial empty repository