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
yan11.meng [Tue, 18 Feb 2020 06:11:21 +0000 (14:11 +0800)]
bump up to release 0.28.7
Change-Id: I6fefe7a3100d360300496c76cfb4d772455977cf
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
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>
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>
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>
jin.xiao [Wed, 13 Mar 2019 01:29:46 +0000 (09:29 +0800)]
Merge branch 'master' into devel
Change-Id: I21c800342bf4767a3d67bec95fe492b53720cb58
jin.xiao [Wed, 27 Feb 2019 08:52:27 +0000 (16:52 +0800)]
bump up to release 0.28.6
Change-Id: I15ec77f8d9ebe2b128a4d53849b9b4076ce09ec6
Xiao Jin [Thu, 25 Oct 2018 06:00:17 +0000 (14:00 +0800)]
bump up to release 0.28.5
Change-Id: I0919283e5f717d58e64afa708207bd2d767787eb
Xiao Jin [Thu, 25 Oct 2018 06:00:17 +0000 (14:00 +0800)]
bump up to release 0.28.5
Change-Id: I0919283e5f717d58e64afa708207bd2d767787eb
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>
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>
Xiao Jin [Wed, 26 Sep 2018 01:41:05 +0000 (09:41 +0800)]
bump up to release 0.28.4
Change-Id: I9e4e5d7275a20a1663ac8eef29d1a33f7b6feb5a
Xiao Jin [Tue, 25 Sep 2018 08:37:36 +0000 (16:37 +0800)]
add new option --fslabel in part section
Change-Id: I0ef3de0c99f23a971b4a862cce2ed38c5fc65a4b
Xiao Jin [Wed, 26 Sep 2018 01:41:05 +0000 (09:41 +0800)]
bump up to release 0.28.4
Change-Id: I9e4e5d7275a20a1663ac8eef29d1a33f7b6feb5a
Xiao Jin [Tue, 25 Sep 2018 08:37:36 +0000 (16:37 +0800)]
add new option --fslabel in part section
Change-Id: I0ef3de0c99f23a971b4a862cce2ed38c5fc65a4b
jinxiao [Mon, 17 Sep 2018 02:41:34 +0000 (10:41 +0800)]
bump up to release 0.28.3
Change-Id: I4e3573099b19234db5e25bbe1046ce3713d5e788
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
Xiao Jin [Thu, 13 Sep 2018 02:22:07 +0000 (10:22 +0800)]
bump up to release 0.28.3
Change-Id: Ic050afa2972196ea5d5b21a650c399b7277317e4
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
Xiao Jin [Fri, 3 Aug 2018 03:39:06 +0000 (11:39 +0800)]
bump up to release 0.28.2
Change-Id: Ia4dd2ce506e0076a7d6470a3cffeebbd80c09240
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
Xiao Jin [Fri, 3 Aug 2018 03:12:47 +0000 (11:12 +0800)]
remove tmp dir in runscript period
Change-Id: I6cfd6e09f8565bae074fe5736a4298fea2461a9d
Xiao Jin [Wed, 9 May 2018 11:28:53 +0000 (19:28 +0800)]
bump up to release 0.28.1
Change-Id: I1f2f15e1fbaed476202c03b2f092a97f14358486
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>
Xiao Jin [Fri, 3 Aug 2018 03:39:06 +0000 (11:39 +0800)]
bump up to release 0.28.2
Change-Id: Ia4dd2ce506e0076a7d6470a3cffeebbd80c09240
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
Xiao Jin [Fri, 3 Aug 2018 03:12:47 +0000 (11:12 +0800)]
remove tmp dir in runscript period
Change-Id: I6cfd6e09f8565bae074fe5736a4298fea2461a9d
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
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
Xiao Jin [Wed, 9 May 2018 11:28:53 +0000 (19:28 +0800)]
bump up to release 0.28.1
Change-Id: I1f2f15e1fbaed476202c03b2f092a97f14358486
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
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>
Xiao Jin [Thu, 12 Apr 2018 11:11:58 +0000 (19:11 +0800)]
bump up to release 0.28.0
Change-Id: I331fd138b92656698bdca6f8d8265f4193f3b9b3
Xiao Jin [Thu, 12 Apr 2018 11:11:58 +0000 (19:11 +0800)]
bump up to release 0.28.0
Change-Id: I331fd138b92656698bdca6f8d8265f4193f3b9b3
mao xiaojuan [Mon, 9 Apr 2018 11:27:12 +0000 (19:27 +0800)]
Apply btrfs mount options "--fsoptions=compress".
Change-Id: Ic286b0c43dd9fb376ab643170e9a3387156c4d96
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>
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>
Xiao Jin [Wed, 28 Mar 2018 14:25:14 +0000 (22:25 +0800)]
change __resize_to_minimal function
Change-Id: I7b50e83cc8b1294f1d9b524ffbd69769eebd914b
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
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>
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>
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
mao xiaojuan [Mon, 9 Apr 2018 11:27:12 +0000 (19:27 +0800)]
Apply btrfs mount options "--fsoptions=compress".
Change-Id: Ic286b0c43dd9fb376ab643170e9a3387156c4d96
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>
mao xiaojuan [Thu, 22 Mar 2018 07:34:18 +0000 (15:34 +0800)]
bump up to release 0.27.9
Change-Id: Ic9072e9e159fb3a4de7714b7d5ea0db69f02dc77
mao xiaojuan [Thu, 22 Mar 2018 07:34:18 +0000 (15:34 +0800)]
bump up to release 0.27.9
Change-Id: Ic9072e9e159fb3a4de7714b7d5ea0db69f02dc77
Dohyung Kim [Tue, 13 Mar 2018 06:15:54 +0000 (15:15 +0900)]
Added ATTACHMENT_PATHS env and IMG_DIR_PATH env
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>
Dohyung Kim [Tue, 13 Mar 2018 06:31:29 +0000 (15:31 +0900)]
Revert "call copy_attachment() after configure() and move attachment files"
This reverts commit
7db9b0c91a5b26f96a86ec10dfad261a7d781f3b.
Change-Id: Iaa242d65fd7fb14c379fff0f268ac1607005169e
Dohyung Kim [Tue, 13 Mar 2018 06:15:54 +0000 (15:15 +0900)]
Added ATTACHMENT_PATHS env and IMG_DIR_PATH env
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>
Dohyung Kim [Tue, 13 Mar 2018 06:31:29 +0000 (15:31 +0900)]
Revert "call copy_attachment() after configure() and move attachment files"
This reverts commit
7db9b0c91a5b26f96a86ec10dfad261a7d781f3b.
Change-Id: Iaa242d65fd7fb14c379fff0f268ac1607005169e
mao xiaojuan [Fri, 26 Jan 2018 09:28:54 +0000 (17:28 +0800)]
bump up to release 0.27.8
Change-Id: I7340bb2cbd256a2f33ed082e29507e99a289ead5
yuhuan.yang [Wed, 24 Jan 2018 05:22:45 +0000 (13:22 +0800)]
Use SHA512 instead of MD5 to encrypt root password
Change-Id: I646334220703dedc28b7b1286e28e01ef4c485de
(cherry picked from commit
707754fa61eb4ae452e3af267e14290552122549)
mao xiaojuan [Tue, 28 Nov 2017 08:58:58 +0000 (16:58 +0800)]
Fix the bug that use local mic-bootstrap to run mic.
Change-Id: I3266c24c2d7be8e7fe91e2d24c6b4f0afb62da87
mao xiaojuan [Thu, 23 Nov 2017 08:05:04 +0000 (16:05 +0800)]
Support local mic-bootstrap rpm package to run mic.
Change-Id: I80298991eea5a9552a497b6e4b290e7b5b94555c
Chunhua Liu [Mon, 29 Jan 2018 05:29:00 +0000 (05:29 +0000)]
Merge "Another method of install tpk." into devel
yuhuan.yang [Mon, 16 Oct 2017 16:42:28 +0000 (00:42 +0800)]
Another method of install tpk.
Change-Id: Ibe2f1cfaa7625ab1ea938feda5df6406beb267e6
xiaojuan.mao [Fri, 13 Oct 2017 04:07:08 +0000 (12:07 +0800)]
The value of fstype is not cpio, an image is generated by cpio.
Change-Id: Ia9ae3d445c708b444da0dee1e5060725db9b9403
xiaojuan.mao [Fri, 22 Sep 2017 07:28:40 +0000 (15:28 +0800)]
When increase rpm release number, user can use --local-pkgs-path to install local pkgs.
Change-Id: I249c2b42a54bd311bb09296a787ffe7d2f03379d
mao xiaojuan [Fri, 26 Jan 2018 09:28:54 +0000 (17:28 +0800)]
bump up to release 0.27.8
Change-Id: I7340bb2cbd256a2f33ed082e29507e99a289ead5
yuhuan.yang [Wed, 24 Jan 2018 05:22:45 +0000 (13:22 +0800)]
Use SHA512 instead of MD5 to encrypt root password
Change-Id: I646334220703dedc28b7b1286e28e01ef4c485de
mao xiaojuan [Tue, 28 Nov 2017 08:58:58 +0000 (16:58 +0800)]
Fix the bug that use local mic-bootstrap to run mic.
Change-Id: I3266c24c2d7be8e7fe91e2d24c6b4f0afb62da87
mao xiaojuan [Thu, 23 Nov 2017 08:05:04 +0000 (16:05 +0800)]
Support local mic-bootstrap rpm package to run mic.
Change-Id: I80298991eea5a9552a497b6e4b290e7b5b94555c
yuhuan.yang [Mon, 16 Oct 2017 16:42:28 +0000 (00:42 +0800)]
Another method of install tpk.
Change-Id: Ibe2f1cfaa7625ab1ea938feda5df6406beb267e6
xiaojuan.mao [Fri, 13 Oct 2017 04:07:08 +0000 (12:07 +0800)]
The value of fstype is not cpio, an image is generated by cpio.
Change-Id: Ia9ae3d445c708b444da0dee1e5060725db9b9403
xiaojuan.mao [Fri, 22 Sep 2017 07:28:40 +0000 (15:28 +0800)]
When increase rpm release number, user can use --local-pkgs-path to install local pkgs.
Change-Id: I249c2b42a54bd311bb09296a787ffe7d2f03379d
Dohyung Kim [Thu, 20 Jul 2017 07:39:49 +0000 (16:39 +0900)]
use the value of --pack-to option as filename to match all outputs
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>
Dohyung Kim [Tue, 21 Nov 2017 05:55:28 +0000 (14:55 +0900)]
support both %runscript and %post-umount to perform scripts before packaging
- 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>
Dohyung Kim [Tue, 16 May 2017 06:39:02 +0000 (15:39 +0900)]
support multiple mic execution at same time
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
Dohyung Kim [Thu, 20 Jul 2017 07:39:49 +0000 (16:39 +0900)]
use the value of --pack-to option as filename to match all outputs
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>
Dohyung Kim [Tue, 21 Nov 2017 05:55:28 +0000 (14:55 +0900)]
support both %runscript and %post-umount to perform scripts before packaging
- 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>
Dohyung Kim [Fri, 9 Jun 2017 11:00:01 +0000 (20:00 +0900)]
add --use-mic-in-bootstrap option
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>
Dohyung Kim [Wed, 15 Nov 2017 02:22:49 +0000 (11:22 +0900)]
Display all rpm debug messages with --rpm-debug
Change-Id: I66ed6a999b20c94238e7fdc29ee68782ab4cd241
Signed-off-by: Dohyung Kim <dohyung2.kim@samsung.com>
Dohyung Kim [Wed, 15 Nov 2017 08:48:39 +0000 (17:48 +0900)]
call copy_attachment() after configure() and move attachment files
- 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>
Dohyung Kim [Tue, 26 Dec 2017 09:36:57 +0000 (18:36 +0900)]
Add init_expand option to partition
- 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>
Dohyung Kim [Thu, 2 Jul 2015 02:39:09 +0000 (11:39 +0900)]
add no_shrink option to partition, fix parameter of disk.expand()
* 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>
SoonKyu Park [Wed, 8 Nov 2017 06:58:24 +0000 (15:58 +0900)]
Setup environment to perform signing script
Change-Id: I8b7a5916a6db8863a03b24d297a479e0d990adad
Dohyung Kim [Tue, 21 Nov 2017 06:45:37 +0000 (15:45 +0900)]
if post scripts fails, CreatorError is raised to catch script errors such as 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>
Dohyung Kim [Mon, 5 Jun 2017 05:49:23 +0000 (14:49 +0900)]
use registered qemu emulator filename if already registered.
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>
Dohyung Kim [Fri, 9 Jun 2017 11:00:01 +0000 (20:00 +0900)]
add --use-mic-in-bootstrap option
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>
Dohyung Kim [Wed, 15 Nov 2017 02:22:49 +0000 (11:22 +0900)]
Display all rpm debug messages with --rpm-debug
Change-Id: I66ed6a999b20c94238e7fdc29ee68782ab4cd241
Signed-off-by: Dohyung Kim <dohyung2.kim@samsung.com>
Dohyung Kim [Wed, 15 Nov 2017 08:48:39 +0000 (17:48 +0900)]
call copy_attachment() after configure() and move attachment files
- 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>
Dohyung Kim [Tue, 26 Dec 2017 09:36:57 +0000 (18:36 +0900)]
Add init_expand option to partition
- 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>
Dohyung Kim [Thu, 2 Jul 2015 02:39:09 +0000 (11:39 +0900)]
add no_shrink option to partition, fix parameter of disk.expand()
* 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>
SoonKyu Park [Wed, 8 Nov 2017 06:58:24 +0000 (15:58 +0900)]
Setup environment to perform signing script
Change-Id: I8b7a5916a6db8863a03b24d297a479e0d990adad
Dohyung Kim [Tue, 21 Nov 2017 06:45:37 +0000 (15:45 +0900)]
if post scripts fails, CreatorError is raised to catch script errors such as 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>
Dohyung Kim [Mon, 5 Jun 2017 05:49:23 +0000 (14:49 +0900)]
use registered qemu emulator filename if already registered.
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>
yuhuan.yang [Mon, 11 Sep 2017 13:40:28 +0000 (21:40 +0800)]
bump up to release 0.27.7
Change-Id: I86dd1072241fae911f6f1fbcb6e79a0583c75947
yuhuan.yang [Tue, 29 Aug 2017 11:33:16 +0000 (19:33 +0800)]
Timezone setting change
Change-Id: I90bdc068430589f04ab148b3b8b9b31d8b197613
xiaojuan.mao [Tue, 8 Aug 2017 10:27:18 +0000 (18:27 +0800)]
Run certain script before creation of tar.gz image.
Change-Id: Id6efc3334dc19e9198251aa79b1d6b965d3df0d1
xiaojuan.mao [Tue, 8 Aug 2017 08:26:19 +0000 (16:26 +0800)]
Locally built mic-bootstrap using gbs cannot be used in mic.
Change-Id: I9fe14df33b74670321ca302d1783f647e87c216d
yangyuhuan [Thu, 21 Sep 2017 15:20:23 +0000 (23:20 +0800)]
Add new option of tpk_install.
Change-Id: I125160ded7533efa8758b1985d514c8933bb617c
yangyuhuan [Thu, 21 Sep 2017 15:04:29 +0000 (23:04 +0800)]
Amend mic cr option of run_script.
Change-Id: Ifbf6569ead73a10390f883cf47ba22abba90a4c3
yangyuhuan [Thu, 21 Sep 2017 14:41:37 +0000 (22:41 +0800)]
Add new option of --run_script.
Change-Id: I16ccc176477f1087d0f6aff0b2e29c3616297dd7
xiaojuan.mao [Thu, 21 Sep 2017 05:59:41 +0000 (13:59 +0800)]
fix the bug that modify the order of generating image by cpio.
Change-Id: Id42e661dd4b6ef2907bd27f406ed350b0289c65e
xiaojuan.mao [Thu, 21 Sep 2017 05:47:26 +0000 (13:47 +0800)]
Modify the order of generating image by cpio.
Change-Id: If2ce4df88b067cb4883d66b7d3f869aadb314ae3
xiaojuan.mao [Thu, 21 Sep 2017 04:09:43 +0000 (12:09 +0800)]
bump up to release 0.27.6
Change-Id: I39a9d1c726ede30428e092d7a11cfd9185df1a76
xiaojuan.mao [Mon, 12 Jun 2017 12:18:06 +0000 (20:18 +0800)]
Change the order of generating image by cpio.
Change-Id: Ia1d2cc22b9a6e695a6f905574f8081c5910f0e8b
yuhuan.yang [Tue, 23 May 2017 15:33:47 +0000 (23:33 +0800)]
Solve issue:mic has error when env no_proxy is 165.xx.xxx...
Change-Id: I76abf3db3854b8d6a2db369a762650712efd14df
yuhuan.yang [Mon, 22 May 2017 13:55:23 +0000 (21:55 +0800)]
Solve mic hang issue, add timeout to show failure.
Change-Id: If1d554455ff6d159789cd0aebae88ed3bdf2451b