summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
Jeon Sang-Heon [Fri, 30 Oct 2020 14:12:51 +0000 (14:12 +0000)]
Remove restore passwd script
When doing OS upgrade, restoring passwd should not be worked at initrd fota.
It will be added to rw migration script, so removed it first.
Change-Id: Iaf7b04261810682b5b7da478ef3f0f8cc24706ca
Signed-off-by: Jeon Sang-Heon <sh95.jeon@samsung.com>
Kichan Kwon [Thu, 29 Oct 2020 01:43:57 +0000 (10:43 +0900)]
Check the result of hash remaking
Change-Id: I3b34d42570f712099aa7bafc641ef95fccd912c8
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
Kichan Kwon [Thu, 22 Oct 2020 10:23:35 +0000 (19:23 +0900)]
Remake dm-verity hash table for updated rootfs
Change-Id: I1b22dcc1da3a0ac386007f71a076022a4ab623a3
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
Kichan Kwon [Wed, 14 Oct 2020 08:41:42 +0000 (17:41 +0900)]
Enter debug mode before RW mount
- Remounting modifies superblock
- If dm-verity is applied, it causes kernel panic
Change-Id: I8c003dda95d1a926ad2fa6020b69cf3c51c99d06
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
Kichan Kwon [Mon, 12 Oct 2020 06:38:38 +0000 (15:38 +0900)]
Use /dev/console instead of specific port number
- Console-connected serial port number depends on device
- With using /dev/console, we don't have to care
which port is connected
- Reference
- https://github.com/torvalds/linux/blob/master/Documentation/admin-guide/serial-console.rst
Change-Id: Ia852951e1e24c6a1cacac279b719fa00c9f5d890
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
Kichan Kwon [Thu, 24 Sep 2020 07:03:38 +0000 (16:03 +0900)]
Update img-verifier usage
Change-Id: If7b797852ad8bffeed1fa6927784079ae6b7165f
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
Kichan Kwon [Mon, 24 Aug 2020 05:41:09 +0000 (14:41 +0900)]
Rename upg-verifier to img-verifier
Change-Id: I83273a54f81e9b8609231f032cccead4682e2b0a
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
Kichan Kwon [Wed, 1 Jul 2020 06:46:57 +0000 (15:46 +0900)]
Allow only debug mode file made by root
Change-Id: I05f311815c6192199a3332a338c717db4e4bd92a
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
Kichan Kwon [Thu, 11 Jun 2020 02:15:46 +0000 (11:15 +0900)]
Provide debug mode before RO update
- Debug mode file : /opt/usr/.upgdebug_ro
Change-Id: Ief2c81df0bdeb8ac138c70fbc7ad55dbed40289b
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
Jeon Sang-Heon [Mon, 22 Jun 2020 13:01:02 +0000 (22:01 +0900)]
Add default PATH variable to script
- For security vulnerability, define default PATH variable to script
Change-Id: Idd18d39f6f51752c4e4bffdff2841a38921c3ab8
Signed-off-by: Jeon Sang-Heon <sh95.jeon@samsung.com>
Jeon Sang-Heon [Tue, 16 Jun 2020 18:16:36 +0000 (03:16 +0900)]
Change require libraries
- Remove lib7zip.so, because it is not exist.
- Move libtota.so to tota-ua
Change-Id: I111400fc287979bf57fda3c9047bafd0b54249ce
Signed-off-by: Jeon Sang-Heon <sh95.jeon@samsung.com>
Jeon Sang-Heon [Tue, 16 Jun 2020 16:01:01 +0000 (01:01 +0900)]
Fix lib path to support 64bit
- Change hardcoded lib path(/usr/lib) to rpmlib macro({_libdir})
- Remove unused fota_gui_test
Change-Id: I5d0ea3539c1494ca998e009e4b1c11abc3b54b69
Signed-off-by: Jeon Sang-Heon <sh95.jeon@samsung.com>
Kunhoon Baik [Tue, 16 Jun 2020 01:22:37 +0000 (10:22 +0900)]
Enable 64 bit
Tizen will support 64 bit binary officially.
Initrd-Fota will be included to initrd-recovery partition.
Although initrd-recovery partition size is exceeded, Initrd-Fota will be applied
Change-Id: I44d194d1385a039d9cc4266e527447ec355c06a1
Jeon Sang-Heon [Mon, 1 Jun 2020 08:45:15 +0000 (17:45 +0900)]
Prevent unexpected fota dir removal
- After RO upgrade was success, do not remove whole fota dir
Change-Id: I8539cec199b3f2586f02cd7b5045b0cfae8ed390
Signed-off-by: Jeon Sang-Heon <sh95.jeon@samsung.com>
Kichan Kwon [Wed, 22 Apr 2020 10:13:53 +0000 (19:13 +0900)]
No more check the number of partition from fstab
- No more partition information is updated to fstab
- FYI, mount path is fixed : /opt and /opt/usr
Change-Id: I5098ae587b5afd84add70e2ea912b352cfc81c9a
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
Jeon Sang-Heon [Thu, 19 Sep 2019 06:10:10 +0000 (15:10 +0900)]
Add PATH variable to script
Fixed security issue in restore-passwd.sh
Change-Id: I9a27b8407be5f741444a9e4916b6b94b27653167
Signed-off-by: Jeon Sang-Heon <sh95.jeon@samsung.com>
Kichan Kwon [Tue, 25 Jun 2019 08:00:26 +0000 (17:00 +0900)]
Revert "Apply TZ_SYS_UPGRADE path to initrd scripts"
This reverts commit
24eccbbd98802c7d6ccab307b95b35ed62b4cbc8.
Change-Id: I1793aa1e4360a2e1038115446b9e6080dd89387f
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
Sunmin Lee [Thu, 26 Jul 2018 01:02:25 +0000 (10:02 +0900)]
Apply TZ_SYS_UPGRADE path to initrd scripts
The new path config for upgrade is added so apply it.
Change-Id: I0af1caaa7173cb27423dfa7db70b765d72a1515d
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
Sunmin Lee [Wed, 16 May 2018 07:39:36 +0000 (16:39 +0900)]
Release initrd-fota version 1.1.1
Change-Id: I9ee7b7adbec9f39aaaf70978d3ea62697fe49be4
Sunmin Lee [Tue, 24 Apr 2018 06:56:56 +0000 (15:56 +0900)]
Add process for custom signature verifier
If the custom signature verifier is included,
it would be executed before update.
Change-Id: Ic3e42b661856d9e6599ec2ef833aa1f30e95db01
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
Sunmin Lee [Fri, 9 Feb 2018 05:51:24 +0000 (14:51 +0900)]
Merge branch 'tizen_4.0' into tizen
Change-Id: I348ad56e03b7b97502261e30fda12626c94ce526
Sunmin Lee [Fri, 9 Feb 2018 05:48:29 +0000 (14:48 +0900)]
Release initrd-fota version 1.1.0
Change-Id: Ia889465b7d2a9c099d009e57c6f85dc2c9d1e77b
Sunmin Lee [Mon, 15 Jan 2018 05:16:31 +0000 (14:16 +0900)]
restore-passwd: overwrite passwd files with new ones
The usage of restore_backup_file was changed.
Add -f option to overwrite existing passwd files.
Change-Id: I1555b032587b9bffb2b2ac72770c0611fff0ad20
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
Sunmin Lee [Thu, 21 Dec 2017 09:56:54 +0000 (18:56 +0900)]
restore-passwd.sh works in rootfs
For some reason, restore-passwd.sh is required to be executed
in rootfs by chroot. This patch moves restore-passwd to rootfs.
Change-Id: I1c46a75af1e64788446a71c044e50afe7fa2feaf
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
Hyotaek Shim [Tue, 28 Nov 2017 08:00:28 +0000 (17:00 +0900)]
Merge passwd and shadow files with the old version files
Change-Id: Ibd78b078187e84863402a311f043385a8478957b
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
Sunmin Lee [Thu, 9 Nov 2017 12:04:58 +0000 (21:04 +0900)]
Patch for update scripts
- Make part_tbl based on lowercase
- Use the same path for update (/opt/data/update)
- Change error code
- Remove delta after update succeeds
Change-Id: I7e4a193b184f7a00119f88c6add9848185c88014
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
Sunmin Lee [Thu, 7 Dec 2017 01:21:35 +0000 (10:21 +0900)]
Add required package
intird-fota requires initrd-recovery.
State this dependency.
Change-Id: I7dff2729daa2c6688e2e51686e91b7b0dca9957b
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
Sunmin Lee [Wed, 8 Nov 2017 10:33:59 +0000 (19:33 +0900)]
Merge branch 'tizen_4.0' into tizen
- Unify update parameter to fota
- Disable debugging mode for upgrade failure
Change-Id: I7b9f8026e6f092994576d69c0f94c2ca21f28479
Sunmin Lee [Wed, 8 Nov 2017 08:59:41 +0000 (17:59 +0900)]
Disable debugging mode for upgrade failure
The debugging mode for upgrade failure is not necessary anymore.
Change-Id: I242026e03f1f93bc9e9568fe0cf5217d91e74047
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
Sunmin Lee [Fri, 3 Nov 2017 01:18:27 +0000 (10:18 +0900)]
Unify update parameter to fota
It was decided that the "fota" is the update parameter for
all target.
Change-Id: I8d2d0034e5c71c76e037e6372572c614a971602c
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
Sunmin Lee [Wed, 25 Oct 2017 07:47:42 +0000 (16:47 +0900)]
Release 1.0.0
initrd-fota for Tizen 4.0 is released
Change-Id: Ic0db9be348575929f2824b6fe0f2749a22e07291
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
Sunmin Lee [Wed, 18 Oct 2017 11:00:47 +0000 (20:00 +0900)]
Eliminate partx dependency
The blkid can covers all the operations in fota/fus_rw script.
Because partx is supposed to be dropped from initrd-recovery,
eliminate partx in initrd-fota, too.
Change-Id: I8c16ceab2e2a51ec666e4480a8f5a0eb2f827774
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
Sunmin Lee [Fri, 15 Sep 2017 03:07:02 +0000 (12:07 +0900)]
Patch for GUI in RO update
Set some env values for GUI and initiate it
in RO update step.
This patch enables GUI feature.
Change-Id: I184a9faf8c9750fbbb16952a64c00dba587e3086
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
Sunmin Lee [Tue, 19 Sep 2017 09:51:07 +0000 (18:51 +0900)]
Add license text
Change-Id: I0800074f59193d6c8f35b55742dcede98c883359
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
Sunmin Lee [Fri, 25 Aug 2017 07:25:10 +0000 (16:25 +0900)]
Revert "MV passwd backup script to initrd-recovery"
This reverts commit
ca7a1bb9a486d7d7a34c70fc870598364443225d.
Change-Id: Id0b13bdd18a7b4f717f0fb79f240fe00f72339fa
Sunmin Lee [Thu, 17 Aug 2017 02:38:09 +0000 (11:38 +0900)]
Patch for 2 partitions compatibility
At some target, there are only 2 partitions without user partition.
In this case, mount unused partition could cause abnormal operation.
This patch checks whether the target is 2 partition platform
by referring to fstab
Change-Id: I882ce9b74f44dacd73fa114ff83f6e9e6d1c4e40
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
Sunmin Lee [Thu, 10 Aug 2017 11:19:32 +0000 (20:19 +0900)]
Remove awk dependency
To be optimized, awk package got out of initrd-recovery.
So, make the same code using coreutil commands instead of awk.
Change-Id: I0273848348ebc5bb97c921a0af7b8c3a554c3066
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
Sunmin Lee [Mon, 21 Aug 2017 23:36:04 +0000 (08:36 +0900)]
MV passwd backup script to initrd-recovery
This script doesn't need to be rootfs.
Move this file to initrd-recovery.
Change-Id: Ia6e6a779df746317bbcf1938ef4d9b8b40c1dbf9
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
Kunhoon Baik [Wed, 9 Aug 2017 07:01:02 +0000 (16:01 +0900)]
Apply new copy mode for generting recovery partition image
Related to https://review.tizen.org/gerrit/143234,
The new copy mode is applied to fota list.
Change-Id: I3e889929a641630018052e884ead7bf29906c731
Kunhoon Baik [Tue, 8 Aug 2017 07:07:55 +0000 (16:07 +0900)]
Minor Fixes for supporting RPI3
a) upgrade-init
: Tizen uses upgrade mode not fota mode in official binary.
: We are supporting two modes for all reference targets - fota & upgrade
b) Minor debug feature
: In generic(release mode), if upgrade is failed,
system should be automatically aborted(rebooted) from recovery initrd
: However, the shell will be created in debug mode.
Change-Id: Ic42aa9f938df74dfcedfb73beb45c9f1a9eda63c
Sunmin Lee [Wed, 9 Aug 2017 23:37:55 +0000 (08:37 +0900)]
BLKID for PARTX not supported target
In case of no partition name in some profile,
it can not get block device path properly.
BLKID, could be the substitution of PARTX.
BLKID would be used in case of some targets
that PARTX is not supported.
Change-Id: Ib98fb9358ef027e2673aaea3b5c7593a389d4d7d
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
Sunmin Lee [Mon, 17 Jul 2017 05:14:36 +0000 (14:14 +0900)]
Prepatch: restore passwd files
From Tizen 4.0, passwd files (/etc/{passwd,shadow,group,gshadow})
were moved to RW partition (/opt/etc).
Therefore, they needed to be recovered during update process.
Change-Id: I3ef0f525adf5b45b9ec77d047f16f5c572fe46ab
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
Sunmin Lee [Wed, 12 Jul 2017 07:16:52 +0000 (16:16 +0900)]
RW update: Systemd offline update
This patch implements systemd based RW update
redirection.
Change-Id: I1123c46710eb75aa0841c1f7fa242c17ffa1d6b5
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
Sunmin Lee [Tue, 13 Jun 2017 05:49:43 +0000 (14:49 +0900)]
Upload initial initrd-fota
Upload initial initrd-fota codes based on reference repository.
Change-Id: I2b5c78386e6a9e202eb450425b8273ea9750a82a
Signed-off-by: Sunmin Lee <sunm.lee@samsung.com>
Tizen Infrastructure [Wed, 31 May 2017 03:21:23 +0000 (03:21 +0000)]
Initial empty repository