summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2019-12-26Merge release-0.28.6 from 'tools/mic'upstream/0.28.6tizen_6.5.m2_releasetizen_6.0.m2_releasesubmit/tizen_6.5/20211028.163501submit/tizen_6.0_hotfix/20201103.115103submit/tizen_6.0_hotfix/20201102.192903submit/tizen_6.0/20201029.205503submit/tizen_5.5_wearable_hotfix/20201026.184307submit/tizen_5.5/20191226.063733submit/tizen/20191226.054359accepted/tizen/unified/20191226.123003accepted/tizen/6.5/unified/20211029.014911accepted/tizen/6.0/unified/hotfix/20201102.231525accepted/tizen/6.0/unified/20201030.111620accepted/tizen/5.5/unified/wearable/hotfix/20201027.100111accepted/tizen/5.5/unified/20191228.075036tizen_6.5tizen_6.0_hotfixtizen_6.0tizen_5.5_wearable_hotfixtizen_5.5_tvtizen_5.5accepted/tizen_6.5_unifiedaccepted/tizen_6.0_unified_hotfixaccepted/tizen_6.0_unifiedaccepted/tizen_5.5_unified_wearable_hotfixaccepted/tizen_5.5_unifiedSoonKyu Park43-117/+1307
Change-Id: I6aa8025c850312f6a03f446f7876310900b277da
2019-02-26bump up to release 0.28.6sandbox/release-0.28.6jin.xiao6-2/+25
Change-Id: Ib5038a0f9bbf09b4f6daa20cb5782337a36e54ca
2018-10-25bump up to release 0.28.5Xiao Jin6-2/+25
Change-Id: I0919283e5f717d58e64afa708207bd2d767787eb
2018-10-25Add %env section supportSlava Barinov2-0/+24
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>
2018-09-26bump up to release 0.28.4Xiao Jin6-2/+25
Change-Id: I9e4e5d7275a20a1663ac8eef29d1a33f7b6feb5a
2018-09-26add new option --fslabel in part sectionXiao Jin2-1/+9
Change-Id: I0ef3de0c99f23a971b4a862cce2ed38c5fc65a4b
2018-09-13bump up to release 0.28.3Xiao Jin6-2/+25
Change-Id: Ic050afa2972196ea5d5b21a650c399b7277317e4
2018-09-13Revert "ext4 images are created with inode size 256 bytes"Xiao Jin1-3/+0
This reverts commit c2b1299800f0f1f8cd4794fc5e55bdc20e35721d. Change-Id: Id9308c18a70de32cb781091f999bb39715bdc55a
2018-08-03bump up to release 0.28.2Xiao Jin6-2/+33
Change-Id: Ia4dd2ce506e0076a7d6470a3cffeebbd80c09240
2018-08-03ext4 images are created with inode size 256 bytesXiao Jin1-0/+3
Change-Id: I52427a52df78dbb27b6a2036d548b128b1485e6e
2018-08-03remove tmp dir in runscript periodXiao Jin1-13/+2
Change-Id: I6cfd6e09f8565bae074fe5736a4298fea2461a9d
2018-08-03Add locale related environment varibale because language is not set to one ↵SoonKyu Park1-0/+5
specified in ks file env['LANG'] = 'language in ks' env['LC_ALL'] = 'language in ks' Change-Id: I8ce8930455af4ae0c6f3482e9c12a74194da02f8
2018-05-09bump up to release 0.28.1Xiao Jin6-2/+29
Change-Id: I1f2f15e1fbaed476202c03b2f092a97f14358486
2018-04-27Change the user and root passwd hash algorithm order to avoid user name same ↵mao xiaojuan1-1/+1
as root name. Change-Id: I6ceb8cf1d0a5f534ec533edadd5218a0b7ffd05d
2018-04-14Check exit status of vdfs image creationJungseung Lee1-2/+5
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>
2018-04-12bump up to release 0.28.0Xiao Jin6-2/+36
Change-Id: I331fd138b92656698bdca6f8d8265f4193f3b9b3
2018-04-09Apply btrfs mount options "--fsoptions=compress".mao xiaojuan1-2/+4
Change-Id: Ic286b0c43dd9fb376ab643170e9a3387156c4d96
2018-03-29In Tizen, losetup command support '-f' option, not '--find' optionDohyung Kim1-1/+1
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>
2018-03-29fix invalid ExtDiskMount.blocksize when "-b [BLOCKSIZE]" extoption is passedDohyung Kim1-5/+21
To set blocksize by parsing "-b [BLOCKSIZE]" from extoptions in ks file Change-Id: I0328cdae59a3466bde4d9a3bccb22026118544a1 Signed-off-by: Dohyung Kim <dohyung2.kim@samsung.com>
2018-03-28change __resize_to_minimal functionXiao Jin1-15/+2
Change-Id: I7b50e83cc8b1294f1d9b524ffbd69769eebd914b
2018-03-22bump up to release 0.27.9mao xiaojuan6-2/+32
Change-Id: Ic9072e9e159fb3a4de7714b7d5ea0db69f02dc77
2018-03-22Added ATTACHMENT_PATHS env and IMG_DIR_PATH envDohyung Kim1-0/+3
Added enviorment veriables to access attachment files and image directory from ks post script. - ATTACHMENT_PATHS: attachemt file paths - IMG_DIR_PATH: a directory path located image files Change-Id: Ia3f409ec8b9c784dba8d5b0baee9b6d9dada3baf Signed-off-by: Dohyung Kim <dohyung2.kim@samsung.com>
2018-03-22Revert "call copy_attachment() after configure() and move attachment files"Dohyung Kim6-8/+4
This reverts commit 7db9b0c91a5b26f96a86ec10dfad261a7d781f3b. Change-Id: Iaa242d65fd7fb14c379fff0f268ac1607005169e
2018-01-30bump up to release 0.27.8mao xiaojuan6-2/+90
Change-Id: I7340bb2cbd256a2f33ed082e29507e99a289ead5
2018-01-30use the value of --pack-to option as filename to match all outputsDohyung Kim3-2/+22
AS-IS: $ sudo mic cr loop PLATFORM.ks --release SNAPSHOT --pack-to IMAGENAME.tar.gz IMAGENAME.tar.gz IMAGENAME.xml SNAPSHOT-PLATFORM.packages SNAPSHOT-PLATFORM.files SNAPSHOT-PLATFORM.license SNAPSHOT-PLATFORM.ks ... TO-BE: $ sudo mic cr loop PLATFORM.ks --release SNAPSHOT --pack-to IMAGENAME.tar.gz IMAGENAME.tar.gz IMAGENAME.xml IMAGENAME.packages IMAGENAME.files IMAGENAME.license IMAGENAME.ks ... Change-Id: I5cc148a09b3e4cc4ed863100f0fde4df362038cd Signed-off-by: Dohyung Kim <dohyung2.kim@samsung.com>
2018-01-30support both %runscript and %post-umount to perform scripts before packagingDohyung Kim5-3/+61
- add %post-umount section which behaves the same as %runscript (if both %runscript and %post-umount are defined then KickstartError occurs) - move post umount scripts from /var/tmp/post_umount_scripts/ on image to host - post umount scripts can be use UMOUNT_SCRIPTS_PATH env variable (UMOUNT_SCRIPTS_PATH: directory path where post umount scripts are located on host) Change-Id: Ib88c103f0d3e84c067d0d6683f406a5cac92739a Signed-off-by: Dohyung Kim <dohyung2.kim@samsung.com>
2018-01-30add --use-mic-in-bootstrap optionDohyung Kim5-1/+22
use mic in bootstrap without copy host mic to bootstrap. by default, copy host mic to bootstrap and use it Change-Id: I3f4f03cc666df05ad4a7c393b771a2487350b9fe Signed-off-by: Dohyung Kim <dohyung2.kim@samsung.com>
2018-01-30Display all rpm debug messages with --rpm-debugDohyung Kim2-0/+8
Change-Id: I66ed6a999b20c94238e7fdc29ee68782ab4cd241 Signed-off-by: Dohyung Kim <dohyung2.kim@samsung.com>
2018-01-30call copy_attachment() after configure() and move attachment filesDohyung Kim6-4/+8
- Call BaseImager.copy_attachment() after BaseImager.configure() Post scripts on configure() cannot access attachment files which come from install_root. So call copy_attachment() after running post scripts. - Move attachment files not copy. If copying attachment files from install_root, then attachment files remain in install_root. So use mv instead of cp for deduplication. Change-Id: Ie7a1d516331e29eaba975bc186b9644b96c17fbc Signed-off-by: Dohyung Kim <dohyung2.kim@samsung.com>
2018-01-30Add init_expand option to partitionDohyung Kim3-4/+41
- if init_expand is enabled, expand partition size(* 1.5) before mount - check partition size after running resize2fs to verify partition size Change-Id: I60e889f04368877b9d74a581279c9ea4f5d33217 Signed-off-by: Dohyung Kim <dohyung2.kim@samsung.com>
2018-01-30add no_shrink option to partition, fix parameter of disk.expand()Dohyung Kim3-3/+11
* add no_shrink option to partition - if no_shrink is enable in specific partition, this partition do not shrink. - if not, following pack_to or shrink option in loop command * fix parameter of disk.expand() - expand(size) -> expand(size=size) Change-Id: Ic9486621795c0e1a867fd551d61f152c693b6c52 Signed-off-by: Dohyung Kim <dohyung2.kim@samsung.com>
2018-01-30Setup environment to perform signing scriptSoonKyu Park2-0/+71
Change-Id: I8b7a5916a6db8863a03b24d297a479e0d990adad
2018-01-30if post scripts fails, CreatorError is raised to catch script errors such as ↵Dohyung Kim1-0/+12
signing error $ cat PLATFORM.ks ... %post # if you want to catch script error, add set command and trap command at the top of script set -e trap 'echo KS POST ERROR: command \"$BASH_COMMAND\" failed with error code $?' ERR # it will cause an error /usr/bin/error_command %end ... $ sudo mic cr auto PLATFORM.ks ... INFO: Running post scripts ... INFO: /tmp/ks-postscript-FShzJp: line 5: /usr/bin/error_command: No such file or directory INFO: KS POST ERROR: command "/usr/bin/error_command" failed with error code 1 INFO: ERROR: Failed to execute %post script with '/bin/sh' Change-Id: I1a34a343b8bdd044ca85939e446c43cce783c900 Signed-off-by: Dohyung Kim <dohyung2.kim@samsung.com>
2018-01-30use registered qemu emulator filename if already registered.Dohyung Kim3-12/+32
1. preserve-argv[0] flag is enabled copy both qemu-XXX and qemu-XXX-binfmt and use them. 2. flag is disabled and the copied qemu and the registered qemu are different create symlink as the registered qemu emulator filename and use symlink Change-Id: I3f9050a01cc3bd0431b37a2c1e29729ef15ee765 Signed-off-by: Dohyung Kim <dohyung2.kim@samsung.com>
2018-01-29support multiple mic execution at same timeDohyung Kim2-7/+0
do not unregister qemu emulator before image creation keep DEVICE_LOCKFILE to prevent a race condition Signed-off-by: Dohyung Kim <dohyung2.kim@samsung.com> Change-Id: I5714194ef6b48f80812b2f8b534d83fc27a663e4
2018-01-29Use SHA512 instead of MD5 to encrypt root passwordyuhuan.yang1-1/+1
Change-Id: I646334220703dedc28b7b1286e28e01ef4c485de (cherry picked from commit 707754fa61eb4ae452e3af267e14290552122549)
2017-11-28Fix the bug that use local mic-bootstrap to run mic.mao xiaojuan1-1/+1
Change-Id: I3266c24c2d7be8e7fe91e2d24c6b4f0afb62da87
2017-11-27Support local mic-bootstrap rpm package to run mic.mao xiaojuan1-1/+21
Change-Id: I80298991eea5a9552a497b6e4b290e7b5b94555c
2017-10-17Another method of install tpk.yuhuan.yang14-8/+159
Change-Id: Ibe2f1cfaa7625ab1ea938feda5df6406beb267e6
2017-10-13The value of fstype is not cpio, an image is generated by cpio.xiaojuan.mao1-5/+8
Change-Id: Ia9ae3d445c708b444da0dee1e5060725db9b9403
2017-09-22When increase rpm release number, user can use --local-pkgs-path to install ↵xiaojuan.mao2-4/+25
local pkgs. Change-Id: I249c2b42a54bd311bb09296a787ffe7d2f03379d
2017-09-11bump up to release 0.27.7yuhuan.yang6-2/+56
Change-Id: I86dd1072241fae911f6f1fbcb6e79a0583c75947
2017-08-29Timezone setting changeyuhuan.yang1-1/+8
Change-Id: I90bdc068430589f04ab148b3b8b9b31d8b197613
2017-08-09Run certain script before creation of tar.gz image.xiaojuan.mao7-2/+56
Change-Id: Id6efc3334dc19e9198251aa79b1d6b965d3df0d1
2017-08-08Locally built mic-bootstrap using gbs cannot be used in mic.xiaojuan.mao2-2/+15
Change-Id: I9fe14df33b74670321ca302d1783f647e87c216d
2017-08-08Add new option of tpk_installyuhuan.yang4-2/+26
Change-Id: Id67c37b143f723e98491aad1d6730446149f01a5
2017-07-18Amend mic cr option of run_scriptyuhuan.yang4-14/+6
Change-Id: Ib088fb9d56b08c9aeae01908827f5507d972cdec
2017-07-14Add new option of --run_scriptyuhuan.yang7-0/+52
Change-Id: I7c2d194ba3bcc4e8fc78073bc922f6e7eb853821
2017-07-13fix the bug that modify the order of generating image by cpio.xiaojuan.mao1-5/+6
Change-Id: I86b9a79a4cca110c7e4cafe0bab48cf6bd94a278
2017-07-13Modify the order of generating image by cpio.xiaojuan.mao3-21/+20
Change-Id: I90cb12a4d68f6989af25318b6181a2ed9e9ebe88