summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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
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>
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>
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>
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>
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>
Tizen Infrastructure [Wed, 4 Jan 2017 04:07:05 +0000 (20:07 -0800)]
Initial empty repository