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