tools/mic.git
7 weeks agoFix the mistake to uninstall preload package by pkgid. sandbox/xuwc/reuse_create_env_py2
wanchao.xu [Sat, 14 Sep 2024 06:40:29 +0000 (14:40 +0800)]
Fix the mistake to uninstall preload package by pkgid.

Change-Id: I1c0431af9f872f48bf84e7eb9a6c57a7cd0cdfcd
Signed-off-by: wanchao.xu <wanchao.xu@samsung.com>
8 weeks agoSync the install root before saving it.
wanchao-xu [Fri, 6 Sep 2024 05:41:17 +0000 (13:41 +0800)]
Sync the install root before saving it.
  * Install root is mounted to loop device, some files may be missed before sync.

Change-Id: I87f687fecdfab5cdf674b92aa17d141f3425f436
Signed-off-by: wanchao-xu <wanchao.xu@samsung.com>
2 months agoOptimize RPMCallback to support install and uninstall package.
wanchao-xu [Tue, 3 Sep 2024 08:34:43 +0000 (16:34 +0800)]
Optimize RPMCallback to support install and uninstall package.

Change-Id: I37d77d2a237003231fd8967197627806568d5832
Signed-off-by: wanchao-xu <wanchao.xu@samsung.com>
2 months agoUse python-rpm to uninstall packages.
wanchao-xu [Tue, 3 Sep 2024 03:36:58 +0000 (11:36 +0800)]
Use python-rpm to uninstall packages.
  * python-rpm can use 'addErase' and 'run' to remove packages, but python3-rpm has a crash bug.
  * It' unnecessary chroot into image to uninstall packages by rpm command.

Change-Id: I07d1c3131e7f6300c65a77ac7e30f1ec68463764
Signed-off-by: wanchao-xu <wanchao.xu@samsung.com>
2 months agoSupport to remove the preload-rw packages.
wanchao-xu [Mon, 2 Sep 2024 09:03:06 +0000 (17:03 +0800)]
Support to remove the preload-rw packages.

Change-Id: I332bcc322a7aa8e0741cdd91ca006a408944c819
Signed-off-by: wanchao-xu <wanchao.xu@samsung.com>
2 months agoSupport to install preload package when updating rpm.
wanchao-xu [Mon, 2 Sep 2024 01:22:23 +0000 (09:22 +0800)]
Support to install preload package when updating rpm.

Change-Id: I9a5eba7267a08d88d80ef054ee4eac583e20c745
Signed-off-by: wanchao-xu <wanchao.xu@samsung.com>
2 months agoSupport to remove the preload package when removing rpm.
wanchao-xu [Fri, 30 Aug 2024 10:01:09 +0000 (18:01 +0800)]
Support to remove the preload package when removing rpm.

Change-Id: I8b59a8afa7a43fa09752dbc6ef5558af490a6680
Signed-off-by: wanchao-xu <wanchao.xu@samsung.com>
2 months agoChroot into image root and use rpm command to unintsall packages.
wanchao-xu [Tue, 27 Aug 2024 03:18:59 +0000 (11:18 +0800)]
Chroot into image root and use rpm command to unintsall packages.
  * python-rpm has a crash bug while use 'addErase' and 'run' to remove packages
  * rpm packages has been installed while recreate image, so chroot into instroot and use rpm command to unintsall packages.

Change-Id: I53ee977ed14690981d100b2661cd0db5dffedde4
Signed-off-by: wanchao-xu <wanchao.xu@samsung.com>
2 months agoRemove the rpm cache which will be updated for image recreator.
wanchao-xu [Mon, 26 Aug 2024 02:48:18 +0000 (10:48 +0800)]
Remove the rpm cache which will be updated for image recreator.

Change-Id: I05eb162d5a31ea4c3469ffcc526934e0d8c42e50
Signed-off-by: wanchao-xu <wanchao.xu@samsung.com>
2 months agoUninstall the packages before update while re-creating image.
wanchao-xu [Fri, 16 Aug 2024 12:22:30 +0000 (20:22 +0800)]
Uninstall the packages before update while re-creating image.
  - Support the uninstall packages for zypppkgmgr.
  - Support to get all packages which depended on updated packages.

Change-Id: I5e3026c83cf7b3cae98aa3cc60115923bc096918
Signed-off-by: wanchao-xu <wanchao.xu@samsung.com>
2 months agoSupport to install the updated packages while re-creating image.
wanchao-xu [Wed, 14 Aug 2024 07:39:21 +0000 (15:39 +0800)]
Support to install the updated packages while re-creating image.

Change-Id: Ief4d79ce92e80946ef5806dc57dc95cbf17bf167
Signed-off-by: wanchao-xu <wanchao.xu@samsung.com>
2 months agoSave the install root for reuse while creating image.
wanchao-xu [Thu, 8 Aug 2024 03:37:22 +0000 (11:37 +0800)]
Save the install root for reuse while creating image.

Change-Id: I31dd8c0a9fb9a62291f06b0090ae9e4dc295fdfc
Signed-off-by: wanchao-xu <wanchao.xu@samsung.com>
3 months agoAdd new section 'runscript_out_bootstrap' for kickstart to run script on host pc... 79/313779/6 devel-py2
wanchao-xu [Tue, 2 Jul 2024 01:50:08 +0000 (09:50 +0800)]
Add new section 'runscript_out_bootstrap' for kickstart to run script on host pc after image created.

Change-Id: Id7dcbf8f689136f54330a1725feab4c2b023b561
Signed-off-by: wanchao-xu <wanchao.xu@samsung.com>
5 months agofix mic create image error: Rpmdb checksum is invalid: dCDPT(pkg checksums) 99/311799/2
wangbiao [Tue, 28 May 2024 05:43:14 +0000 (14:43 +0900)]
fix mic create image error: Rpmdb checksum is invalid: dCDPT(pkg checksums)
rebuild rpmdb before run intall package transaction.
Change-Id: If4b7dcf1ef15f48c00753b236fce092f0e8300ce
Signed-off-by: wangbiao <biao716.wang@samsung.com>
6 months agoBump up to release 0.29.1 95/309895/1
xuhy [Thu, 18 Apr 2024 01:54:59 +0000 (09:54 +0800)]
Bump up to release 0.29.1

Change-Id: I70eafbb5ea36292884cf13383d03ec699d1dd336

6 months agoFix the issue that mic lost dependency file in docker 18/309718/1
zhouhao [Tue, 16 Apr 2024 03:01:50 +0000 (11:01 +0800)]
Fix the issue that mic lost dependency file in docker

Change-Id: I31f6e639b18c9eb5ee7fca32093a32962748fc08
Signed-off-by: zhouhao <haozhou.zhou@samsung.com>
7 months agoenable global arguament '-d' '-i' '-v' to mic create subcommands,because argparser... 00/307800/4
wangbiao [Wed, 13 Mar 2024 07:16:44 +0000 (16:16 +0900)]
enable global arguament '-d' '-i' '-v' to mic create subcommands,because argparser funciton change

Change-Id: Iae0c3c5e525e2b748ff4748bce5b52f656f20841
Signed-off-by: wangbiao <biao716.wang@samsung.com>
10 months agodon't copy mic code on host pc to mic-bootstap if mic in bootstrap is py3 23/303023/1 accepted/tools_devbase_tools_legacy sandbox/xuhy/opensuse421 accepted/tools/devbase/tools/legacy/20240422.110739 accepted/tools/devbase/tools/legacy/20240423.040631 accepted/tools/devbase/tools/legacy/20240424.050612
wangbiao [Tue, 19 Dec 2023 05:28:25 +0000 (14:28 +0900)]
don't copy mic code on host pc to mic-bootstap if mic in bootstrap is py3

Change-Id: I38f212811f0b3fd78d95f29d51c96790df155e32
Signed-off-by: wangbiao <biao716.wang@samsung.com>
18 months agobump up to release 0.28.19 12/291312/1 accepted/tizen_devbase_tools accepted/tizen/devbase/tools/20230414.004436 submit/trunk/20230413.154030
biao716.wang [Thu, 13 Apr 2023 07:27:28 +0000 (16:27 +0900)]
bump up to release 0.28.19

Change-Id: Id52b39bb8a0dec06b7563b34392daa6da1cc9c3d
Signed-off-by: biao716.wang <biao716.wang@samsung.com>
18 months agofix mic create image error issue 63/291263/2
biao716.wang [Wed, 12 Apr 2023 09:38:15 +0000 (18:38 +0900)]
fix mic create image error issue
This issue happend if %prepackages %packages sections are both in ks files.

Refering the change in https://github.com/rpm-software-management/rpm/commit/51b306686c46dfa67f6f9d16f0190c99f55339dd
Initialize plugins much earlier, it is initialized in AddInstall funciton not run(),
Before in rpm 4.11, once ts_pre run(), it will re-initialize plugins.
But now for rpm 4.14, after ts_pre.run() finish, msm handler is freed, so in ts.run(), when checking msm
handler, because it is NULL, this error will come.
So should call ts.AddInstall() after ts_pre.run().

error: Device security policy is missing. Unable to proceed
error: Plugin msm: hook tsm_pre failed

Change-Id: Iddd7c3c1c942960724c554926c444720d067f0bb
Signed-off-by: biao716.wang <biao716.wang@samsung.com>
21 months agobump up to release 0.28.18 57/286757/1 accepted/tizen/devbase/tools/20230113.003818 submit/trunk/20230112.173030
biao716.wang [Thu, 12 Jan 2023 09:37:30 +0000 (18:37 +0900)]
bump up to release 0.28.18

Change-Id: Ia162b5055db14f0c286caa338cf9f863b1490df4
Signed-off-by: biao716.wang <biao716.wang@samsung.com>
21 months agoAdd support for riscv64 20/286420/1
Marek Pikuła [Fri, 23 Dec 2022 14:19:10 +0000 (15:19 +0100)]
Add support for riscv64

Change-Id: I4ead58bcabeffbb08e89f2984e0af2e913452a40
Signed-off-by: Marek Pikuła <m.pikula@partner.samsung.com>
2 years agobump up to release 0.28.17 57/279457/1 accepted/tizen/devbase/tools/20220921.101900 submit/trunk/20220920.063039 submit/trunk/20220920.151030 submit/trunk/20220920.202030 submit/trunk/20220921.085030
biao716.wang [Wed, 10 Aug 2022 03:14:20 +0000 (12:14 +0900)]
bump up to release 0.28.17

Change-Id: I3e39b60aa94077ae13418ec1b17f18199fce9783
Signed-off-by: biao716.wang <biao716.wang@samsung.com>
2 years agoAdd block-recommends option to choose if install recommmended packages 20/279420/2
biao716.wang [Tue, 9 Aug 2022 06:15:00 +0000 (15:15 +0900)]
Add block-recommends option to choose if install recommmended packages

Change-Id: I6bd836f647fba0071ad42607b9ce6395364b84d1
Signed-off-by: biao716.wang <biao716.wang@samsung.com>
2 years agobump up to release 0.28.16 54/270854/1 accepted/tizen/devbase/tools/20220211.011048 accepted/tizen/devbase/tools/20220211.130539 submit/trunk/20220210.150030 submit/trunk/20220210.152030 submit/trunk/20220210.153030 submit/trunk/20220210.153530 submit/trunk/20220211.173530
biao716.wang [Thu, 10 Feb 2022 06:23:31 +0000 (15:23 +0900)]
bump up to release 0.28.16

Change-Id: I26023eebe01ca402c8d96503b40bdb10c51dc799
Signed-off-by: biao716.wang <biao716.wang@samsung.com>
2 years agoAdd postscripts-maxruntime option to set the max run time for post scripts 11/270711/5
biao716.wang [Tue, 8 Feb 2022 03:47:40 +0000 (12:47 +0900)]
Add postscripts-maxruntime option to set the max run time for post scripts
example: sudo mic create auto test.ks --postscripts-maxruntime=500
mean the max run time for post scripts is 500 minutes.
without this option, default max run time is 120 minutes.

Change-Id: Ib58e5200ac7c75b1708a86b58eec3c682f0d6e2e
Signed-off-by: biao716.wang <biao716.wang@samsung.com>
3 years agobump up to release 0.28.15 23/260823/1 accepted/tizen/devbase/tools/20210707.095507 accepted/tizen/devbase/tools/20210714.004916 submit/trunk/20210707.084530 submit/trunk/20210707.104530 submit/trunk/20210707.124530 submit/trunk/20210713.151030
biao716.wang [Tue, 6 Jul 2021 14:37:22 +0000 (23:37 +0900)]
bump up to release 0.28.15

Change-Id: I4fb3511f1429ad40b8df27c3e415e44f758342b6
Signed-off-by: biao716.wang <biao716.wang@samsung.com>
3 years agoDon't install recommended packages in mic 65/260665/4
biao716.wang [Fri, 2 Jul 2021 06:59:17 +0000 (15:59 +0900)]
Don't install recommended packages in mic

Change-Id: I6c332292cc136932eaf2db561dda230cc1bbbe4d
Signed-off-by: biao716.wang <biao716.wang@samsung.com>
3 years agobump up to release 0.28.14 54/258354/1 accepted/tizen/devbase/tools/20210517.061543 submit/trunk/20210517.091730
biao716.wang [Fri, 14 May 2021 03:36:52 +0000 (12:36 +0900)]
bump up to release 0.28.14

Change-Id: Ia5e333c693c9adca8c39ff5bc539a90bee0a40f6
Signed-off-by: biao716.wang <biao716.wang@samsung.com>
3 years agoFix pylint error, reimport glob 95/257495/1
biao716.wang [Tue, 27 Apr 2021 03:03:09 +0000 (12:03 +0900)]
Fix pylint error, reimport glob

Change-Id: I84fc60078a1a96e9881c608014ee00667d9d017f
Signed-off-by: biao716.wang <biao716.wang@samsung.com>
3 years agoencrypt user password with SHA512 instead of MD5 60/256760/3
biao716.wang [Mon, 12 Apr 2021 11:11:25 +0000 (20:11 +0900)]
encrypt user password with SHA512 instead of MD5
and for root account, need to add it to certain groups if there exist userconfig.groups
Change-Id: I76eb7f32bc4cfab8f12d3c64f3dcc250cfa44cbf
Signed-off-by: biao716.wang <biao716.wang@samsung.com>
3 years agoChange the mic version to 0.28.13 98/256598/1
biao716.wang [Thu, 8 Apr 2021 01:47:12 +0000 (10:47 +0900)]
Change the mic version to 0.28.13

Change-Id: Ie401368942493c77dea1bd0ad93f535c3dc3c856
Signed-off-by: biao716.wang <biao716.wang@samsung.com>
3 years agobump up to release 0.28.13 32/255732/1
biao716.wang [Tue, 23 Mar 2021 05:45:15 +0000 (14:45 +0900)]
bump up to release 0.28.13

Change-Id: Id1d33157a3780c752c9bc3e9bdb164185fbcbdd3
Signed-off-by: biao716.wang <biao716.wang@samsung.com>
3 years agochange squashfsopts2 name to squashfsoptions_maxsize 34/255334/1
biao716.wang [Wed, 17 Mar 2021 05:22:55 +0000 (14:22 +0900)]
change squashfsopts2 name to squashfsoptions_maxsize

Change-Id: I934d9b2ea558644d8a3330193e14665e47008fc6
Signed-off-by: biao716.wang <biao716.wang@samsung.com>
3 years agoadd squashfsopts2 option for squashfs file system. 78/254678/1
biao716.wang [Mon, 8 Mar 2021 07:39:17 +0000 (16:39 +0900)]
add squashfsopts2 option for squashfs file system.

If squashfs image size is larger than squashfsoptions2, mic will stop.
How to use in ks files
 "part /mnt/initrd --size=14 --ondisk mmcblk0p --fstype=squashfs --label=ramdisk --squashfsoptions2=4"

Change-Id: Ib55511137e178aea4a00fceb13619b8476925638
Signed-off-by: biao716.wang <biao716.wang@samsung.com>
3 years agobump up to release 0.28.12 70/253170/1
biao716.wang [Fri, 5 Feb 2021 05:54:46 +0000 (14:54 +0900)]
bump up to release 0.28.12

Change-Id: I2ea0cb503d68c34cb7234ad93a00f2c0f724b4f0
Signed-off-by: biao716.wang <biao716.wang@samsung.com>
3 years agoSupport f2fs option and check if kernel support f2s 80/251580/2
biao716.wang [Fri, 15 Jan 2021 08:18:39 +0000 (17:18 +0900)]
Support f2fs option and check if kernel support f2s

Change-Id: I785462a0f4a6a81c4ad45451dd010686e88aeed6
Signed-off-by: biao716.wang <biao716.wang@samsung.com>
3 years agoMerge "Support f2fs file system" into devel
Chunhua Liu [Fri, 15 Jan 2021 05:29:10 +0000 (05:29 +0000)]
Merge "Support f2fs file system" into devel

3 years agoSupport f2fs file system 32/250332/8
biao716.wang [Wed, 23 Dec 2020 13:33:53 +0000 (22:33 +0900)]
Support f2fs file system

Change-Id: I54013ce3ca4d0322ee6a488ef7c00bbefd7fd288
Signed-off-by: biao716.wang <biao716.wang@samsung.com>
3 years agoremove urlgrabber directory from mic 87/247387/1
biao716.wang [Tue, 10 Nov 2020 08:45:00 +0000 (17:45 +0900)]
remove urlgrabber directory from mic
There is python-urlgrabber package in Tools, use it instead of it in mic.

Change-Id: I64fde0066180281d7ded0c16c2e4f5c08a84b681
Signed-off-by: biao716.wang <biao716.wang@samsung.com>
3 years agobump up to release 0.28.11 20/246920/1 accepted/tizen/devbase/tools/20201106.081435 submit/trunk/20201105.154530 submit/trunk/20201105.160530 submit/trunk/20201106.105030
biao716.wang [Thu, 5 Nov 2020 07:38:53 +0000 (16:38 +0900)]
bump up to release 0.28.11

Change-Id: I36c56ef4091ccacc73f0bc99a201b917ce3191b6
Signed-off-by: biao716.wang <biao716.wang@samsung.com>
4 years agoFix pylint error: before createrepo depends on yum, yum will be installed, but create... 00/246500/1 accepted/tizen/devbase/tools/20201105.013055 submit/trunk/20201030.143530 submit/trunk/20201102.094730 submit/trunk/20201104.132730
biao716.wang [Fri, 30 Oct 2020 06:03:50 +0000 (15:03 +0900)]
Fix pylint error: before createrepo depends on yum, yum will be installed, but createrepo is removed, so add dependece for yum directly

Change-Id: Ie1da951cd9917f499c38e9ba143a5418f26e82ea
Signed-off-by: biao716.wang <biao716.wang@samsung.com>
4 years agofix run error issue for parser repomd.xml when here is group type 66/245766/1 submit/trunk/20201029.114030 submit/trunk/20201029.132130 submit/trunk/20201029.140230 submit/trunk/20201030.015026 submit/trunk/20201030.104730
biao716.wang [Thu, 15 Oct 2020 11:11:29 +0000 (20:11 +0900)]
fix run error issue for parser repomd.xml when here is group type

Change-Id: I85eacfa800bf85f63773b0a049b38d8432475aa2
Signed-off-by: biao716.wang <biao716.wang@samsung.com>
4 years agoRefine code: remove duplicated code 69/244269/2
biao716.wang [Wed, 16 Sep 2020 12:46:46 +0000 (21:46 +0900)]
Refine code: remove duplicated code

Change-Id: I697231e7ad5eb02bf8fde1213f615a4f4338043a
Signed-off-by: biao716.wang <biao716.wang@samsung.com>
4 years agoSeparate qcow plugin scripts 10/243210/2
biao716.wang [Fri, 4 Sep 2020 02:51:02 +0000 (11:51 +0900)]
Separate qcow plugin scripts

Change-Id: Ieb7d4e761b7847ae218dbe9724996f54daf78070
Signed-off-by: biao716.wang <biao716.wang@samsung.com>
4 years agobump up to release 0.28.10 79/238979/2 accepted/tizen/devbase/tools/20200723.121023 submit/trunk/20200723.141412 submit/trunk/20200723.152112
biao716.wang [Tue, 21 Jul 2020 03:08:04 +0000 (12:08 +0900)]
bump up to release 0.28.10

Change-Id: I5dd81dac4c601dbf482208712dde59eee2874c04
Signed-off-by: biao716.wang <biao716.wang@samsung.com>
4 years agoMerge "Create btrfs images with the metadata single option"
Chunhua Liu [Tue, 21 Jul 2020 02:48:33 +0000 (02:48 +0000)]
Merge "Create btrfs images with the metadata single option"

4 years agoCreate btrfs images with the metadata single option 44/238344/1
Junghoon Kim [Mon, 13 Jul 2020 03:57:05 +0000 (12:57 +0900)]
Create btrfs images with the metadata single option

Tizen product and reference targets embed the NAND flash device as the
primary storage. The btrfs filesystem uses the metadata single option as
default if a NAND storage is detected. For this, create btrfs images
with the metadata single option.

Change-Id: I99a3ad08589e51cd7ff8cb6e0275aa03ecdad035
Signed-off-by: Junghoon Kim <jhoon20.kim@samsung.com>
4 years agorefine code with SAM check 76/237676/5
biao716.wang [Thu, 2 Jul 2020 09:40:52 +0000 (18:40 +0900)]
refine code with SAM check

Change-Id: Id28233d710f227697a93672f2ea5e614dc1c7d4f
Signed-off-by: biao716.wang <biao716.wang@samsung.com>
4 years agobump up to release 0.28.9 65/236465/1 accepted/tizen/devbase/tools/20200623.003412 submit/trunk/20200619.141212 submit/trunk/20200622.151812
yan11.meng [Wed, 17 Jun 2020 08:08:59 +0000 (16:08 +0800)]
bump up to release 0.28.9

Change-Id: I12f8a9fcbc568a8a7be6e53903ebf230ab3e8cf4

4 years agoFix the bug that truncates existing inittab file 07/236307/2 accepted/tizen/devbase/tools/20200618.010551 submit/trunk/20200617.133020
Jungwoo [Tue, 16 Jun 2020 06:29:12 +0000 (15:29 +0900)]
Fix the bug that truncates existing inittab file

In case of python, open file with 'w' mode truncates a file.
To open a file without truncation, it shouldn't be opened with 'w' mode.
Since it already checked file's existence, set mode as 'r+'.
This patch makes script works as expected.

This bug comes from commit '2af16b806d7b9e76b534c1df150438bf9c62e68c'
"fix pylint errors for mic"

Change-Id: I633c13a77f01de74f7eb73a171611f14c135f192

4 years agoMerge "fix build error with Typeerror" into devel submit/trunk/20200612.131210 submit/trunk/20200612.180310 submit/trunk/20200612.182210 submit/trunk/20200612.185510 submit/trunk/20200612.191020 submit/trunk/20200615.140020
Chunhua Liu [Thu, 11 Jun 2020 08:00:43 +0000 (08:00 +0000)]
Merge "fix build error with Typeerror" into devel

4 years agofix build error with Typeerror 21/235421/1
yan11.meng [Thu, 4 Jun 2020 10:03:40 +0000 (18:03 +0800)]
fix build error with Typeerror

Change-Id: Ia04aec6a394bee0ca53e5cee83259cac42ad6734

4 years agoIncrease max loop device number upto 255 04/233304/1
Jungwoo [Wed, 13 May 2020 12:09:10 +0000 (21:09 +0900)]
Increase max loop device number upto 255

According to loop manual,
kernel provides the /dev/loop-control device since Linux 3.1,
which permits an application to dynamically find a free device,
and to add and remove loop devices from the system.

The limit is the maximum number of minor devices for a single major
device(since loop has a single major, block 7), which is limited by
MINORBITS which is located in kdev_t.h file of Linux.
Therefore, it actually 2 to the power of 20, just over a million.

In result, Linux could support lots number of loop devices.

To use more than 100 loop devices,
increase max loop device number in mic.

Change-Id: I2e763f3c70c5aa919e67621bc54d37c0def9d07b

4 years agobump up to release 0.28.8 89/233189/1 accepted/tizen/devbase/tools/20200514.023617 accepted/tizen/devbase/tools/20200520.012816 submit/trunk/20200513.162810 submit/trunk/20200519.161030 submit/trunk/20200519.164610 submit/trunk/20200519.184310
yan11.meng [Wed, 13 May 2020 03:07:23 +0000 (11:07 +0800)]
bump up to release 0.28.8

Change-Id: I29c0957f742f39deb644ac954a4ed43dd71b94bd

4 years agoremove /etc/fstab file, https://bugs.tizen.org/browse/DEVT-399 62/230762/1 accepted/tizen/devbase/tools/20200415.093504 accepted/tizen/devbase/tools/20200423.100556 submit/trunk/20200414.141500 submit/trunk/20200414.173500 submit/trunk/20200414.181500 submit/trunk/20200414.184000 submit/trunk/20200414.191000 submit/trunk/20200422.115210 submit/trunk/20200422.142510 submit/trunk/20200422.165210 submit/trunk/20200423.102810 submit/trunk/20200423.115423 submit/trunk/20200423.122334
yan11.meng [Tue, 14 Apr 2020 05:22:33 +0000 (13:22 +0800)]
remove /etc/fstab file, https://bugs.tizen.org/browse/DEVT-399

Change-Id: Ie7a3e0b84a7a15a41e42d7265ecd4109351987b9

4 years agobump up to release 0.28.7 02/225202/1
yan11.meng [Tue, 18 Feb 2020 06:11:21 +0000 (14:11 +0800)]
bump up to release 0.28.7

Change-Id: I6fefe7a3100d360300496c76cfb4d772455977cf

4 years agoskip set hosts by mic when /etc/hosts exists or add option to skip 97/220497/1
yan11.meng [Thu, 19 Dec 2019 02:23:08 +0000 (10:23 +0800)]
skip set hosts by mic when /etc/hosts exists or add option to skip

Change-Id: Ic9c63103fdde12ead58fbef676952a575e97daed

4 years agoadd option for mic to skip set hosts when create 98/219798/7
yan11.meng [Tue, 10 Dec 2019 06:50:19 +0000 (14:50 +0800)]
add option for mic to skip set hosts when create
https://bugs.tizen.org/browse/DEVT-394

Change-Id: I4c9877b265e615e8f5e1d4ce2b52f4b93da0aed4
Signed-off-by: yan11.meng <yan11.meng@samsung.com>
4 years agofix all pylint error for mic 17/218617/2
biao716.wang [Tue, 26 Nov 2019 05:36:40 +0000 (13:36 +0800)]
fix all pylint error for mic

Change-Id: I04e63b3e77052f4350acc8202fd7a84a58baeeac
Signed-off-by: biao716.wang <biao716.wang@samsung.com>
4 years agofix pylint errors for mic 68/217768/6
yan11.meng [Wed, 23 Oct 2019 05:30:05 +0000 (13:30 +0800)]
fix pylint errors for mic

Change-Id: Idda5347f96b9034daec0f57d4cfbc16ca13b0883
Signed-off-by: yan11.meng <yan11.meng@samsung.com>
5 years agoMerge branch 'master' into devel 40/201340/4 release-pylint
jin.xiao [Wed, 13 Mar 2019 01:29:46 +0000 (09:29 +0800)]
Merge branch 'master' into devel

Change-Id: I21c800342bf4767a3d67bec95fe492b53720cb58

5 years agobump up to release 0.28.6 09/200609/1
jin.xiao [Wed, 27 Feb 2019 08:52:27 +0000 (16:52 +0800)]
bump up to release 0.28.6

Change-Id: I15ec77f8d9ebe2b128a4d53849b9b4076ce09ec6

6 years agobump up to release 0.28.5 66/192066/1
Xiao Jin [Thu, 25 Oct 2018 06:00:17 +0000 (14:00 +0800)]
bump up to release 0.28.5

Change-Id: I0919283e5f717d58e64afa708207bd2d767787eb

6 years agobump up to release 0.28.5 release-20181031 released-tools-18.01.10 released-tools-18.01.9 released-tools-19.01.01 staging-released-tools-18.01.10 staging-released-tools-18.01.9 staging-released-tools-19.01.01
Xiao Jin [Thu, 25 Oct 2018 06:00:17 +0000 (14:00 +0800)]
bump up to release 0.28.5

Change-Id: I0919283e5f717d58e64afa708207bd2d767787eb

6 years agoAdd %env section support 41/191441/2
Slava Barinov [Wed, 17 Oct 2018 06:28:03 +0000 (09:28 +0300)]
Add %env section support

Kickstart file now may have section for environment variables setup.
Section should look like

 %env
 VARIABLE1=0x1000
 VARIABLE2="value"
 %end

This environment is set up for mic process and propagated into child processes
during firmware build.

Change-Id: Ida45e768781faf277438e3fb591d9bd931a09a1f
Signed-off-by: Slava Barinov <v.barinov@samsung.com>
6 years agoAdd %env section support 98/191698/1
Slava Barinov [Wed, 17 Oct 2018 06:28:03 +0000 (09:28 +0300)]
Add %env section support

Kickstart file now may have section for environment variables setup.
Section should look like

 %env
 VARIABLE1=0x1000
 VARIABLE2="value"
 %end

This environment is set up for mic process and propagated into child processes
during firmware build.

Change-Id: I22cd45a4b3c2ff7c4c7d27abe1ef1936d4d350f9
Signed-off-by: Slava Barinov <v.barinov@samsung.com>
6 years agobump up to release 0.28.4 09/190009/2
Xiao Jin [Wed, 26 Sep 2018 01:41:05 +0000 (09:41 +0800)]
bump up to release 0.28.4

Change-Id: I9e4e5d7275a20a1663ac8eef29d1a33f7b6feb5a

6 years agoadd new option --fslabel in part section 07/190007/1
Xiao Jin [Tue, 25 Sep 2018 08:37:36 +0000 (16:37 +0800)]
add new option --fslabel in part section

Change-Id: I0ef3de0c99f23a971b4a862cce2ed38c5fc65a4b

6 years agobump up to release 0.28.4 release-20180928 staging-released-tools-18.01.8
Xiao Jin [Wed, 26 Sep 2018 01:41:05 +0000 (09:41 +0800)]
bump up to release 0.28.4

Change-Id: I9e4e5d7275a20a1663ac8eef29d1a33f7b6feb5a

6 years agoadd new option --fslabel in part section
Xiao Jin [Tue, 25 Sep 2018 08:37:36 +0000 (16:37 +0800)]
add new option --fslabel in part section

Change-Id: I0ef3de0c99f23a971b4a862cce2ed38c5fc65a4b

6 years agobump up to release 0.28.3 01/189301/1
jinxiao [Mon, 17 Sep 2018 02:41:34 +0000 (10:41 +0800)]
bump up to release 0.28.3

Change-Id: I4e3573099b19234db5e25bbe1046ce3713d5e788

6 years agoRevert "ext4 images are created with inode size 256 bytes" 71/189171/1
Your Name [Fri, 14 Sep 2018 03:47:25 +0000 (11:47 +0800)]
Revert "ext4 images are created with inode size 256 bytes"

This reverts commit ee9b725874836b4c52a8b5f2db9af78ba8e183c8.

Change-Id: I6155390b4aa95c40760225403d800b1d99876208

6 years agobump up to release 0.28.3 release-20180914 released-tools-18.01.7 staging-released-tools-18.01.7
Xiao Jin [Thu, 13 Sep 2018 02:22:07 +0000 (10:22 +0800)]
bump up to release 0.28.3

Change-Id: Ic050afa2972196ea5d5b21a650c399b7277317e4

6 years agoRevert "ext4 images are created with inode size 256 bytes"
Xiao Jin [Wed, 12 Sep 2018 07:44:59 +0000 (15:44 +0800)]
Revert "ext4 images are created with inode size 256 bytes"

This reverts commit c2b1299800f0f1f8cd4794fc5e55bdc20e35721d.

Change-Id: Id9308c18a70de32cb781091f999bb39715bdc55a

6 years agobump up to release 0.28.2 83/185883/1
Xiao Jin [Fri, 3 Aug 2018 03:39:06 +0000 (11:39 +0800)]
bump up to release 0.28.2

Change-Id: Ia4dd2ce506e0076a7d6470a3cffeebbd80c09240

6 years agoext4 images are created with inode size 256 bytes 79/185879/1
Xiao Jin [Fri, 3 Aug 2018 03:23:51 +0000 (11:23 +0800)]
ext4 images are created with inode size 256 bytes

Change-Id: I52427a52df78dbb27b6a2036d548b128b1485e6e

6 years agoremove tmp dir in runscript period 72/185872/1
Xiao Jin [Fri, 3 Aug 2018 03:12:47 +0000 (11:12 +0800)]
remove tmp dir in runscript period

Change-Id: I6cfd6e09f8565bae074fe5736a4298fea2461a9d

6 years agobump up to release 0.28.1 71/185871/1
Xiao Jin [Wed, 9 May 2018 11:28:53 +0000 (19:28 +0800)]
bump up to release 0.28.1

Change-Id: I1f2f15e1fbaed476202c03b2f092a97f14358486

6 years agoChange the user and root passwd hash algorithm order to avoid user name same as root... 67/185867/1
mao xiaojuan [Fri, 27 Apr 2018 07:23:43 +0000 (15:23 +0800)]
Change the user and root passwd hash algorithm order to avoid user name same as root name.

Change-Id: I6ceb8cf1d0a5f534ec533edadd5218a0b7ffd05d
Signed-off-by: jinxiao <jin.xiao@samsung.com>
6 years agobump up to release 0.28.2 release-20180803
Xiao Jin [Fri, 3 Aug 2018 03:39:06 +0000 (11:39 +0800)]
bump up to release 0.28.2

Change-Id: Ia4dd2ce506e0076a7d6470a3cffeebbd80c09240

6 years agoext4 images are created with inode size 256 bytes
Xiao Jin [Fri, 3 Aug 2018 03:23:51 +0000 (11:23 +0800)]
ext4 images are created with inode size 256 bytes

Change-Id: I52427a52df78dbb27b6a2036d548b128b1485e6e

6 years agoremove tmp dir in runscript period
Xiao Jin [Fri, 3 Aug 2018 03:12:47 +0000 (11:12 +0800)]
remove tmp dir in runscript period

Change-Id: I6cfd6e09f8565bae074fe5736a4298fea2461a9d

6 years agoAdd locale related environment varibale because language is not set to one specified...
SoonKyu Park [Wed, 23 May 2018 02:27:24 +0000 (11:27 +0900)]
Add locale related environment varibale because language is not set to one specified in ks file env['LANG'] = 'language in ks' env['LC_ALL'] = 'language in ks'

Change-Id: I8ce8930455af4ae0c6f3482e9c12a74194da02f8

6 years agoAdd locale related environment varibale because language is not set to one specified... 44/179844/1
SoonKyu Park [Wed, 23 May 2018 02:27:24 +0000 (11:27 +0900)]
Add locale related environment varibale because language is not set to one specified in ks file
env['LANG'] = 'language in ks'
env['LC_ALL'] = 'language in ks'

Change-Id: I8ce8930455af4ae0c6f3482e9c12a74194da02f8

6 years agobump up to release 0.28.1 release-20180511 tizen_tools_release
Xiao Jin [Wed, 9 May 2018 11:28:53 +0000 (19:28 +0800)]
bump up to release 0.28.1

Change-Id: I1f2f15e1fbaed476202c03b2f092a97f14358486

6 years agoChange the user and root passwd hash algorithm order to avoid user name same as root...
mao xiaojuan [Fri, 27 Apr 2018 07:23:43 +0000 (15:23 +0800)]
Change the user and root passwd hash algorithm order to avoid user name same as root name.

Change-Id: I6ceb8cf1d0a5f534ec533edadd5218a0b7ffd05d

6 years agoCheck exit status of vdfs image creation
Jungseung Lee [Wed, 28 Mar 2018 10:15:18 +0000 (19:15 +0900)]
Check exit status of vdfs image creation

If vdfs creation process exit with failure (EXIT_FAILURE), it should be checked.
Because it could cause malformed vdfs image creation.

In this patch, we added checking code of exit status.

Change-Id: I5aae6a8cb6de0b4dcf2dc1f9e27ee6139b26f918
Signed-off-by: Jungseung Lee <js07.lee@samsung.com>
6 years agobump up to release 0.28.0 06/175906/1
Xiao Jin [Thu, 12 Apr 2018 11:11:58 +0000 (19:11 +0800)]
bump up to release 0.28.0

Change-Id: I331fd138b92656698bdca6f8d8265f4193f3b9b3

6 years agobump up to release 0.28.0 release-20180413
Xiao Jin [Thu, 12 Apr 2018 11:11:58 +0000 (19:11 +0800)]
bump up to release 0.28.0

Change-Id: I331fd138b92656698bdca6f8d8265f4193f3b9b3

6 years agoApply btrfs mount options "--fsoptions=compress".
mao xiaojuan [Mon, 9 Apr 2018 11:27:12 +0000 (19:27 +0800)]
Apply btrfs mount options "--fsoptions=compress".

Change-Id: Ic286b0c43dd9fb376ab643170e9a3387156c4d96

6 years agoIn Tizen, losetup command support '-f' option, not '--find' option
Dohyung Kim [Tue, 27 Mar 2018 08:01:43 +0000 (17:01 +0900)]
In Tizen, losetup command support '-f' option, not '--find' option

https://review.tizen.org/gerrit/gitweb?p=platform/upstream/util-linux.git;a=blob;f=sys-utils/losetup1.c;h=059832de3a218f854746ef5bdeb1583a98acae19;hb=9a6b29405679d6d7b4cafd19a6fc7bb07ee14938#l1182

Change-Id: I5e54549ec2a742c187ac25d81a4052b18d71a697
Signed-off-by: Dohyung Kim <dohyung2.kim@samsung.com>
6 years agofix invalid ExtDiskMount.blocksize when "-b [BLOCKSIZE]" extoption is passed
Dohyung Kim [Mon, 6 Jul 2015 12:34:30 +0000 (21:34 +0900)]
fix invalid ExtDiskMount.blocksize when "-b [BLOCKSIZE]" extoption is passed

To set blocksize by parsing "-b [BLOCKSIZE]" from extoptions in ks file

Change-Id: I0328cdae59a3466bde4d9a3bccb22026118544a1
Signed-off-by: Dohyung Kim <dohyung2.kim@samsung.com>
6 years agochange __resize_to_minimal function
Xiao Jin [Wed, 28 Mar 2018 14:25:14 +0000 (22:25 +0800)]
change __resize_to_minimal function

Change-Id: I7b50e83cc8b1294f1d9b524ffbd69769eebd914b

6 years agoMerge "In Tizen, losetup command support '-f' option, not '--find' option" into devel
Chunhua Liu [Fri, 13 Apr 2018 08:20:10 +0000 (08:20 +0000)]
Merge "In Tizen, losetup command support '-f' option, not '--find' option" into devel

6 years agofix invalid ExtDiskMount.blocksize when "-b [BLOCKSIZE]" extoption is passed 52/173952/7
Dohyung Kim [Mon, 6 Jul 2015 12:34:30 +0000 (21:34 +0900)]
fix invalid ExtDiskMount.blocksize when "-b [BLOCKSIZE]" extoption is passed

To set blocksize by parsing "-b [BLOCKSIZE]" from extoptions in ks file

Change-Id: I0328cdae59a3466bde4d9a3bccb22026118544a1
Signed-off-by: Dohyung Kim <dohyung2.kim@samsung.com>
6 years agoCheck exit status of vdfs image creation 30/174130/3
Jungseung Lee [Wed, 28 Mar 2018 10:15:18 +0000 (19:15 +0900)]
Check exit status of vdfs image creation

If vdfs creation process exit with failure (EXIT_FAILURE), it should be checked.
Because it could cause malformed vdfs image creation.

In this patch, we added checking code of exit status.

Change-Id: I5aae6a8cb6de0b4dcf2dc1f9e27ee6139b26f918
Signed-off-by: Jungseung Lee <js07.lee@samsung.com>
6 years agochange __resize_to_minimal function, use default param "-M" to minimalize 41/175841/2
Xiao Jin [Wed, 28 Mar 2018 14:25:14 +0000 (22:25 +0800)]
change __resize_to_minimal function, use default param "-M" to minimalize

Change-Id: I7b50e83cc8b1294f1d9b524ffbd69769eebd914b

6 years agoApply btrfs mount options "--fsoptions=compress". 17/175417/1
mao xiaojuan [Mon, 9 Apr 2018 11:27:12 +0000 (19:27 +0800)]
Apply btrfs mount options "--fsoptions=compress".

Change-Id: Ic286b0c43dd9fb376ab643170e9a3387156c4d96

6 years agoIn Tizen, losetup command support '-f' option, not '--find' option 67/173967/1
Dohyung Kim [Tue, 27 Mar 2018 08:01:43 +0000 (17:01 +0900)]
In Tizen, losetup command support '-f' option, not '--find' option

https://review.tizen.org/gerrit/gitweb?p=platform/upstream/util-linux.git;a=blob;f=sys-utils/losetup1.c;h=059832de3a218f854746ef5bdeb1583a98acae19;hb=9a6b29405679d6d7b4cafd19a6fc7bb07ee14938#l1182

Change-Id: I5e54549ec2a742c187ac25d81a4052b18d71a697
Signed-off-by: Dohyung Kim <dohyung2.kim@samsung.com>