platform/upstream/mic.git
6 years agoMerge release-0.27.4 from 'tools/mic' accepted/tizen_3.0_common accepted/tizen_3.0_ivi accepted/tizen_3.0_mobile accepted/tizen_3.0_tv accepted/tizen_3.0_wearable accepted/tizen_4.0_unified accepted/tizen_5.0_unified accepted/tizen_5.5_unified_mobile_hotfix sandbox/soong9/0.27.4_upgrade tizen_3.0 tizen_4.0 tizen_4.0_tv tizen_5.0 tizen_5.5_mobile_hotfix accepted/tizen/3.0/common/20170630.141935 accepted/tizen/3.0/ivi/20170630.081242 accepted/tizen/3.0/mobile/20170630.081407 accepted/tizen/3.0/tv/20170630.081427 accepted/tizen/3.0/wearable/20170630.081227 accepted/tizen/4.0/unified/20170816.013304 accepted/tizen/4.0/unified/20170828.222729 accepted/tizen/5.0/unified/20181102.030014 accepted/tizen/5.5/unified/20191031.011055 accepted/tizen/5.5/unified/mobile/hotfix/20201027.073755 accepted/tizen/unified/20170629.085549 submit/tizen/20170602.051709 submit/tizen/20170619.064646 submit/tizen_3.0/20170602.051619 submit/tizen_3.0/20170619.080749 submit/tizen_4.0/20170811.094300 submit/tizen_4.0/20170828.100006 submit/tizen_5.0/20181101.000007 submit/tizen_5.5/20191031.000007 submit/tizen_5.5_mobile_hotfix/20201026.185107 tizen_4.0.IoT.p1_release tizen_4.0.IoT.p2_release tizen_4.0.m2_release tizen_5.5.m2_release upstream/0.27.4
SoonKyu Park [Thu, 1 Jun 2017 10:39:16 +0000 (19:39 +0900)]
Merge release-0.27.4 from 'tools/mic'

Change-Id: I7f4d55c6c384bc520b2fbe2004affb9d27ed919f

7 years agobump up to release 0.27.4 sandbox/soong9/tools_mic
SoonKyu Park [Tue, 4 Apr 2017 10:50:58 +0000 (19:50 +0900)]
bump up to release 0.27.4

Change-Id: I2610a237daec485f2b24c8e942e3b0d847d929aa

7 years agoShow logs inside 'Running scripts' in mic.
xiaojuan.mao [Tue, 14 Mar 2017 02:13:13 +0000 (10:13 +0800)]
Show logs inside 'Running scripts' in mic.

Change-Id: I6be708a8c791911d96d903063401a156bc23c138

7 years agoCopy ks setting lang to file /etc/config/mic_language for other use
yyh [Mon, 13 Mar 2017 10:14:23 +0000 (18:14 +0800)]
Copy ks setting lang to file /etc/config/mic_language for other use

Change-Id: Iaa62e8a2cc74bd868043044636b2ff1172036d0d

7 years agoReplace 'copy' to 'symbolic link' in timeznoe setting inside mic.
xiaojuan.mao [Fri, 3 Mar 2017 08:40:44 +0000 (16:40 +0800)]
Replace 'copy' to 'symbolic link' in timeznoe setting inside mic.

Change-Id: Idea80f05b7e31ec0cbc34ab627d90977b517527f

7 years agoMerge add mipsel register on binfmt_misc && Add support of qemu-mipsel patch
Jun Wang [Fri, 3 Mar 2017 07:56:24 +0000 (15:56 +0800)]
Merge add mipsel register on binfmt_misc && Add support of qemu-mipsel patch

Change-Id: I6df917f19662ecfeb8ef5810b9ce2c9765018326

7 years agoFixup changelog that causes errors.
MyungJoo Ham [Tue, 24 Jan 2017 05:25:48 +0000 (14:25 +0900)]
Fixup changelog that causes errors.

This fixes the following Debian git-build-recipe error:

RUN ['git-build-recipe', '--safe', '--no-build', '--manifest', '/home/buildd/build-RECIPEBRANCHBUILD-1302092/chroot-autobuild/home/buildd/work/tree/manifest', '--distribution', 'xenial', '--allow-fallback-to-native', '--append-version', '~ubuntu16.04.1', '/home/buildd/build-RECIPEBRANCHBUILD-1302092/chroot-autobuild/home/buildd/work/recipe', '/home/buildd/build-RECIPEBRANCHBUILD-1302092/chroot-autobuild/home/buildd/work/tree']
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/gitbuildrecipe/deb_util.py", line 139, in add_autobuild_changelog_entry
    substitute_changelog_vars(base_branch, None, cl)
  File "/usr/lib/python3/dist-packages/gitbuildrecipe/deb_version.py", line 172, in substitute_changelog_vars
    base_branch.deb_version = debupstream_var.replace(base_branch.deb_version)
  File "/usr/lib/python3/dist-packages/gitbuildrecipe/recipe.py", line 101, in replace
    return value.replace(self.name, self.get())
  File "/usr/lib/python3/dist-packages/gitbuildrecipe/deb_version.py", line 59, in get
    "No previous changelog to take the upstream version from")
gitbuildrecipe.recipe.SubstitutionUnavailable: Substitution for {debupstream} not available: No previous changelog to take the upstream version from

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/git-build-recipe", line 9, in <module>
    load_entry_point('git-build-recipe==0.1', 'console_scripts', 'git-build-recipe')()
  File "/usr/lib/python3/dist-packages/gitbuildrecipe/main.py", line 147, in main
    append_version=args.append_version)
  File "/usr/lib/python3/dist-packages/gitbuildrecipe/deb_util.py", line 143, in add_autobuild_changelog_entry
    "%s was used: %s: %s." % (e.name, e.reason, reason))
Exception: No previous changelog to take the upstream version from as {debupstream} was used: No previous changelog to take the upstream version from: debian/changelog didn't contain any parseable stanzas.
resource.struct_rusage(ru_utime=1.7839999999999998, ru_stime=1.116, ru_maxrss=33232, ru_ixrss=0, ru_idrss=0, ru_isrss=0, ru_minflt=25805, ru_majflt=41, ru_nswap=0, ru_inblock=12560, ru_oublock=18536, ru_msgsnd=0, ru_msgrcv=0, ru_nsignals=0, ru_nvcsw=1382, ru_nivcsw=290)
RUN: /usr/share/launchpad-buildd/slavebin/scan-for-processes ['scan-for-processes', 'RECIPEBRANCHBUILD-1302092']
Scanning for processes to kill in build /home/buildd/build-RECIPEBRANCHBUILD-1302092/chroot-autobuild...
RUN: /usr/share/launchpad-buildd/slavebin/umount-chroot ['umount-chroot', 'RECIPEBRANCHBUILD-1302092']
Unmounting chroot for build RECIPEBRANCHBUILD-1302092...
RUN: /usr/share/launchpad-buildd/slavebin/remove-build ['remove-build', 'RECIPEBRANCHBUILD-1302092']
Removing build RECIPEBRANCHBUILD-1302092

Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
7 years agoMerge release-0.27.3 from 'tools/mic' accepted/tizen_common accepted/tizen_ivi accepted/tizen_mobile accepted/tizen_tv accepted/tizen_wearable sandbox/soong9/cpio tizen_3.0_tv accepted/tizen/3.0/common/20170201.164711 accepted/tizen/3.0/ivi/20170201.091622 accepted/tizen/3.0/mobile/20170201.091446 accepted/tizen/3.0/tv/20170201.091513 accepted/tizen/3.0/wearable/20170201.091556 accepted/tizen/common/20170124.181959 accepted/tizen/ivi/20170125.085518 accepted/tizen/mobile/20170125.085431 accepted/tizen/tv/20170125.085449 accepted/tizen/unified/20170309.040149 accepted/tizen/wearable/20170125.085502 submit/tizen/20170124.041446 submit/tizen/20170124.070203 submit/tizen_3.0/20170124.041343 submit/tizen_3.0/20170124.055025 submit/tizen_3.0/20170201.064334 submit/tizen_unified/20170308.100415 tizen_4.0.m1_release upstream/0.27.3
SoonKyu Park [Fri, 13 Jan 2017 05:07:35 +0000 (14:07 +0900)]
Merge release-0.27.3 from 'tools/mic'

Change-Id: Icd174a478b4e10c562c764b0ceb657adcf678e54

7 years agobump up to release 0.27.3
Jiankang Fan [Mon, 19 Dec 2016 03:02:45 +0000 (11:02 +0800)]
bump up to release 0.27.3

Change-Id: Idaa905f768ea684920d4b94223095e6fed9204ca
Signed-off-by: Jiankang Fan <jiankang.fan@samsung.com>
Conflicts:
ChangeLog
packaging/mic.changes

7 years agoShow pkgid when install pkg error
Jiankang Fan [Tue, 20 Dec 2016 00:53:00 +0000 (08:53 +0800)]
Show pkgid when install pkg error

Change-Id: I8bb5737b82f956a6eeccbc994c6a8c48ecde002a
Signed-off-by: Jiankang Fan <jiankang.fan@samsung.com>
7 years agosupport vdfs and squashfs image creation
Jiankang Fan [Mon, 19 Dec 2016 12:59:12 +0000 (20:59 +0800)]
support vdfs and squashfs image creation

Change-Id: Ife64b311bfece1e2f3b2a231062a9a2b9e69d897
Signed-off-by: Jiankang Fan <jiankang.fan@samsung.com>
7 years agoModify Release version to '0' for gbs build 33/89733/1 accepted/tizen_3.0.m2_mobile accepted/tizen_3.0.m2_tv accepted/tizen_3.0.m2_wearable tizen_3.0.m2 accepted/tizen/3.0.m2/mobile/20170105.024724 accepted/tizen/3.0.m2/tv/20170105.024923 accepted/tizen/3.0.m2/wearable/20170105.025030 accepted/tizen/3.0/common/20161114.111258 accepted/tizen/3.0/ivi/20161011.055309 accepted/tizen/3.0/mobile/20161015.033620 accepted/tizen/3.0/tv/20161016.005137 accepted/tizen/3.0/wearable/20161015.083518 accepted/tizen/common/20160927.152624 accepted/tizen/ivi/20160927.230726 accepted/tizen/mobile/20160927.230633 accepted/tizen/tv/20160927.230650 accepted/tizen/wearable/20160927.230707 submit/tizen/20160927.010916 submit/tizen_3.0.m2/20170104.093753 submit/tizen_3.0_common/20161104.104000 submit/tizen_3.0_ivi/20161010.000005 submit/tizen_3.0_mobile/20161015.000004 submit/tizen_3.0_tv/20161015.000004 submit/tizen_3.0_wearable/20161015.000004
SoonKyu Park [Mon, 26 Sep 2016 13:35:46 +0000 (22:35 +0900)]
Modify Release version to '0' for gbs build

Change-Id: I52ac11d8d5752ef5fd0e4247144ffb065e6acef0

7 years agobump up to release 0.27.2
SoonKyu Park [Mon, 26 Sep 2016 05:23:01 +0000 (14:23 +0900)]
bump up to release 0.27.2

Change-Id: I8040f7786af0b31c02fe169a1f7f626fc7a99fd0

7 years agoAdd subcommand option parameters(-v, -d, -i) for fixing tizen2.4 mobile issue
jianzhong.fang [Sun, 18 Sep 2016 03:04:42 +0000 (11:04 +0800)]
Add subcommand option parameters(-v, -d, -i) for fixing tizen2.4 mobile issue

Change-Id: I18f0667bc7537aaf1e8eee5ec3320f1b52058071
Signed-off-by: jianzhong.fang <jz.fang@samsung.com>
7 years agoAdd exclude-from-image option to exclude specific images
jianzhong.fang [Fri, 19 Aug 2016 00:27:03 +0000 (08:27 +0800)]
Add exclude-from-image option to exclude specific images

Change-Id: I5651efc10e3b250af0f31f5224f9dca40a5d7124

7 years agoMerge release-0.27.1 from 'tools/mic' tizen_0.27.1 accepted/tizen/common/20160923.160804 submit/tizen/20160923.060613
SoonKyu Park [Fri, 23 Sep 2016 01:35:49 +0000 (10:35 +0900)]
Merge release-0.27.1 from 'tools/mic'

Change-Id: Ifba625f3902104e6a21e8340f5b292f0190057d7

7 years agoAdd change log and release information for Release 0.27.1 upstream_0.27.1
SoonKyu Park [Thu, 16 Jun 2016 09:14:38 +0000 (18:14 +0900)]
Add change log and release information for Release 0.27.1

Change-Id: I620035d4871df6cb31fe94121f060db6b17f2833

7 years agobump up to release 0.27.1 upstream/0.27.1
jianzhong.fang [Wed, 25 May 2016 07:01:28 +0000 (15:01 +0800)]
bump up to release 0.27.1

Change-Id: I3dba1b42fae23a1dbe37d8ff668fc97dd3ed76a4

7 years agoRemove BmapCreate and Filemap source code from MIC
jianzhong.fang [Tue, 17 May 2016 06:33:26 +0000 (14:33 +0800)]
Remove BmapCreate and Filemap source code from MIC

Change-Id: I1bcd94008d785fb82cb807b8678ce960cb6f1145

7 years agoRevert "Drop mic raw image format support"
jianzhong.fang [Tue, 17 May 2016 01:19:07 +0000 (09:19 +0800)]
Revert "Drop mic raw image format support"

Change-Id: I2752f5c804f215ba96b5cfbabfefb1c383bb5803

8 years agoUpdate Change Logs and RELEASE_NOTES for 0.27
SoonKyu Park [Tue, 3 May 2016 05:28:00 +0000 (14:28 +0900)]
Update Change Logs and RELEASE_NOTES for 0.27

Change-Id: Ic14019a86c4efd1c302ea123579d9c1747785a91

8 years agoModify change logs and release notes not to release Fedora 23
SoonKyu Park [Mon, 18 Apr 2016 08:29:49 +0000 (17:29 +0900)]
Modify change logs and release notes not to release Fedora 23

Change-Id: Icb3a15056eb26c48b57730a06e952a2898cb97ab

8 years agoHandle conflicts from git merge release-20160315
SoonKyu Park [Mon, 11 Apr 2016 06:24:24 +0000 (15:24 +0900)]
Handle conflicts from git merge release-20160315

8 years agobump up to release 0.27
jianzhong.fang [Mon, 28 Mar 2016 11:49:27 +0000 (19:49 +0800)]
bump up to release 0.27

Change-Id: I1c8861e517686047368a3941f678b56d173056fb

8 years agofix broken tar archive
jianzhong.fang [Mon, 28 Mar 2016 10:58:45 +0000 (18:58 +0800)]
fix broken tar archive

Change-Id: I971b256f3e47212dd54b2f5b9232a8ade212a405

8 years agocheck scriptlet error file on /tmp/.postscript/error/
jianzhong.fang [Thu, 17 Mar 2016 02:34:48 +0000 (10:34 +0800)]
check scriptlet error file on /tmp/.postscript/error/

Change-Id: I26c09e1bfc2c7ef9090b8e9218ce06880072398a

8 years agoneed to check whether the loop device exists after excute losetupcmd --find
jianzhong.fang [Thu, 17 Mar 2016 02:28:28 +0000 (10:28 +0800)]
need to check whether the loop device exists after excute losetupcmd --find

Change-Id: I0611a6b52f6e8a5ecc17f1fbc12044a0f7167326

8 years agoRevert "Add lzop compress format"
jianzhong.fang [Thu, 17 Mar 2016 01:37:52 +0000 (09:37 +0800)]
Revert "Add lzop compress format"

Change-Id: If63177dbb1ae2a8f1a2fc1cbb849cd51fc1ea957

8 years agoFix unit test cases for CentOS_6
Rong Jinhui [Wed, 4 Nov 2015 11:48:42 +0000 (19:48 +0800)]
Fix unit test cases for CentOS_6

Change-Id: Idf5d4c3fb493468272374760ca9d8a507036fc40
Signed-off-by: Rong Jinhui <jinhui.rong@samsung.com>
8 years agoUpdate the mic doc
jianzhong.fang [Wed, 4 Nov 2015 06:01:03 +0000 (14:01 +0800)]
Update the mic doc

Change-Id: Id17882b91640f5390198c17bbf3bc2fdb8699668

8 years agoUsing argparse module to parse the cmd line
yyh [Tue, 26 Jan 2016 10:21:34 +0000 (18:21 +0800)]
Using argparse module to parse the cmd line

Conflicts:
plugins/imager/loop_plugin.py

8 years agoDrop mic raw image format support
jianzhong.fang [Mon, 28 Sep 2015 03:04:05 +0000 (11:04 +0800)]
Drop mic raw image format support

Change-Id: Ia5f0f14131463f1eb20bbfe8a7159dfe1307f215

Conflicts:
plugins/imager/raw_plugin.py

8 years agoDrop MIC livecd image format support.
jianzhong.fang [Thu, 17 Sep 2015 08:24:12 +0000 (16:24 +0800)]
Drop MIC livecd image format support.

Change-Id: I22032747185fb6f2344c4a88ca227503d9369823

8 years agoDrop MIC liveusb image format support
jianzhong.fang [Tue, 8 Sep 2015 02:58:19 +0000 (10:58 +0800)]
Drop MIC liveusb image format support

Change-Id: I48e2f647b8278107bd4ce84c0c9c0237dec8b948

8 years agocleanup the code related with mic-native
jianzhong.fang [Wed, 2 Sep 2015 01:20:10 +0000 (09:20 +0800)]
cleanup the code related with mic-native

Change-Id: Iaec1eb7817b05a0eacdef3c1aafe248eeaade538

8 years agoDon't check disk size during rpm transaction when creating multiple partitions
Yeongil Jang [Thu, 22 Jan 2015 06:01:47 +0000 (15:01 +0900)]
Don't check disk size during rpm transaction when creating multiple partitions

rpm check only "/" partition size before installing packages

Change-Id: Ic00e937530f926f58ee4099f7a079c640fc721a5
Signed-off-by: Yeongil Jang <yg0577.jang@samsung.com>
8 years ago--priority option of *.ks file in mic does not apply
Gyeoungmin Kim [Wed, 20 May 2015 00:43:10 +0000 (09:43 +0900)]
--priority option of *.ks file in mic does not apply

I confirm that  --priority option of *.ks file in mic does not apply
When creating an image file using ks file, Priority is determined by repo name

If you check the logs of the mic by applying the repo name below to see what the results are different

repo --name=mobile-wayland_arm64 ...
repo --name=prerelease ... --priority 1
..............................................
repo --name=2mobile-wayland_arm64 ...
repo --name=1prerelease ... --priority 1

Change-Id: I53bb8e96bc8eb06e8075294e56b0cbb4f35afd6b

8 years agoUpdate tar command option
Lihong Sun [Thu, 11 Dec 2014 06:56:25 +0000 (01:56 -0500)]
Update tar command option

List whole files to the tar command instead of giving a dir

Change-Id: I1916924eaf63876c9d4fe0bcfa64f4f8e142a42e

8 years agoDrop mic native support
Lihong Sun [Wed, 25 Mar 2015 02:53:24 +0000 (22:53 -0400)]
Drop mic native support

mic option --runtime=native has been broken for more than one year,
maintain this mode requires more effort for new distribution support,
so drop this mode without risk.

Fixes: #DEVT-248

Change-Id: Iaee916889fabfe62f6a507781f9ca1c3d01ee5a2

8 years agoMount option is modified to be more general
Gyeoungmin Kim [Wed, 3 Dec 2014 05:43:52 +0000 (14:43 +0900)]
Mount option is modified to be more general
Supporting for using command line tools as toybox, busybox.

Fixes: #2359

Change-Id: I3b5935609d83601900f03c978e48e95490559143
Signed-off-by: Gyeoungmin Kim <g5.kim@samsung.com>
8 years agoPut log file in 'release' output always.
Lihong [Tue, 11 Nov 2014 03:26:44 +0000 (22:26 -0500)]
Put log file in 'release' output always.

When image creation failed, log created by '--release' will be
located under 'outdir' instead of 'release_dir'. Also put the
log file under 'release_dir' when image creation failed.

mic-appliance create images through executing '/etc/init.d/mic'
script in the appliance. 'time mic cr auto $extra /media/out/$ks'
is called, and '--release' option is used when creating images.

In the past, 3 points about the logfile created by '--release':
1. Create logfile in default 'out_dir' which is specified in
'/etc/mic/mic.conf'. 2. Before creating images, check whether the
'release_dir' exists, if it exists, remove the whole directory. 3.
After the image creation finished, copy the logfile to the final
'release_dir' where the images located. So when the image creation
failed, no logfile found in 'release_dir', the logfile is under default
'out_dir'.

If directly change the 'out_dir' to 'dest_dir' in conf.py, the image
creation will fail if there already exist a same 'release_dir', because
this existed 'release_dir' will be removed when creating images, but the
logfile use this dir at the time, so it cannot be removed, then mic will
fail and exit. So right now, if 'release_dir' already existed, just remove
the files under it except the newly created logfile, and remain the dir.

Fixes: #2212

Change-Id: Ibdc9af3d0e03ca966517d05b1e519d4d9fb3ad43

8 years agoAdd copyright to files that miss copyright
Lihong Sun [Fri, 12 Dec 2014 05:45:00 +0000 (00:45 -0500)]
Add copyright to files that miss copyright

Fixes: #2250

Change-Id: I4e1fa970229b460053671c325ba469a542f83806

8 years agoUpdata manual page in /doc
Gyeoungmin.kim [Thu, 6 Nov 2014 05:41:01 +0000 (14:41 +0900)]
Updata manual page in /doc

Change-Id: I7144355d94a6c4b02a6d9fe47178c8bdd38d6691
Signed-off-by: Gyeoungmin.kim <g5.kim@samsung.com>
Signed-off-by: Lihong Sun <lihongx.sun@intel.com>
8 years agoFix syslinux installation path issue in Arch Linux
Junchun Guan [Thu, 23 Oct 2014 03:27:57 +0000 (11:27 +0800)]
Fix syslinux installation path issue in Arch Linux

isolinux.bin and mbr.bin is installed to /usr/lib/syslinux/bios in arch linux

Change-Id: Iaa737b7fb277b5b7dee0ebb97a2523722f60e65d
Signed-off-by: Junchun Guan <junchunx.guan@intel.com>
8 years agobump up to release 0.26
Gui Chen [Tue, 14 Oct 2014 22:58:08 +0000 (22:58 +0000)]
bump up to release 0.26

Change-Id: Ic291b2c7fbe8c09a1bdf341d35740f9f639cc5cf
Signed-off-by: Gui Chen <gui.chen@intel.com>
8 years agobump up to 0.26 rc1
Gui Chen [Tue, 14 Oct 2014 04:26:07 +0000 (04:26 +0000)]
bump up to 0.26 rc1

Change-Id: I47f65df512e74b7ba82efcaf0b81b75f9795bcea
Signed-off-by: Gui Chen <gui.chen@intel.com>
8 years agoadd qcow image support
Gui Chen [Mon, 29 Sep 2014 03:50:20 +0000 (03:50 +0000)]
add qcow image support

Change-Id: I5d357a162b2227beaff35f4a5ef913d36a2a6972
Signed-off-by: Gui Chen <gui.chen@intel.com>
8 years agochange __imgdir to protect member
Gui Chen [Mon, 29 Sep 2014 04:59:59 +0000 (04:59 +0000)]
change __imgdir to protect member

Change-Id: I2da8fc9d549374877f00c51924df4f7d0425d2c7
Signed-off-by: Gui Chen <gui.chen@intel.com>
8 years agoAdd 'ValueError' exception.
lihongsx [Thu, 28 Aug 2014 09:42:45 +0000 (17:42 +0800)]
Add 'ValueError' exception.

Change-Id: I22021ebea6bd2db34150c15f588289c18929d63a

8 years agoAdd 'get_VcsInfo' function part to yumpkgmgr.py
lihongsx [Tue, 26 Aug 2014 06:54:17 +0000 (14:54 +0800)]
Add 'get_VcsInfo' function part to yumpkgmgr.py

Fixes: #2081

Change-Id: Id780d02d38cbfccf6d4bb6e9eb37d709db0dd336

8 years agofix static qemu-arm failed issue
Gui Chen [Mon, 18 Aug 2014 03:31:20 +0000 (23:31 -0400)]
fix static qemu-arm failed issue

Change-Id: I44a2c69f4292306405857a0b8545d231f2b635f3
Signed-off-by: Gui Chen <gui.chen@intel.com>
8 years agoCheck whether '/usr/bin/qemu-aarch64' exist.
lihongsx [Wed, 13 Aug 2014 11:34:16 +0000 (19:34 +0800)]
Check whether '/usr/bin/qemu-aarch64' exist.

Change-Id: I3d15f5ee386802c23e438e453aedfdace72739d5

8 years agocopy the real device mapper
Gui Chen [Wed, 13 Aug 2014 08:25:32 +0000 (04:25 -0400)]
copy the real device mapper

some operation like initrd creation need the real device actually,
so copy it into _instroot as well

Change-Id: Id45680bc2407bfc9e07e90753b9696bb1066db12
Signed-off-by: Gui Chen <gui.chen@intel.com>
8 years agoadd real path of device mapper to partition dict
Gui Chen [Wed, 13 Aug 2014 08:19:36 +0000 (04:19 -0400)]
add real path of device mapper to partition dict

actually /dev/mapper/loop0p1 is symbol link in some distros,
so add its real path to dict

Change-Id: I2c9655e61e8878c3bbf5ea134f28996df1c6d78a
Signed-off-by: Gui Chen <gui.chen@intel.com>
8 years agoaarch64: use qemu-aarch64 instead qemu-arm64
Chanho Park [Fri, 27 Jun 2014 05:28:50 +0000 (14:28 +0900)]
aarch64: use qemu-aarch64 instead qemu-arm64

In qemu version 2.0, we use qemu-aarch64 instead of qemu-arm64. Thus,
this mic script should be changed to use correct qemu path of arm64
platform.

Change-Id: I3d910511cbece0cafdfb72f7846cbdadcd6c1f2d
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
8 years agoAdd 'python-xml' dependency of mic
lihongsx [Tue, 5 Aug 2014 02:38:37 +0000 (10:38 +0800)]
Add 'python-xml' dependency of mic

Fixes: #2028

Change-Id: Ib8eec98150115bb4b36e7226d1cfa91e29de682c

8 years agoAdd sha1sum and sha256sum
lihongsx [Mon, 4 Aug 2014 15:23:47 +0000 (23:23 +0800)]
Add sha1sum and sha256sum

Fixes: #1956

Change-Id: I9eca40309e4a7eabb1cbc46424266312b3f2b10c

8 years agoadd strict-mode feature for zypp backend
Gui Chen [Tue, 5 Aug 2014 07:01:31 +0000 (03:01 -0400)]
add strict-mode feature for zypp backend

Fixes: #2056

Change-Id: I4858a52364189d5985c90b4bc6a0d435507be758
Signed-off-by: Gui Chen <gui.chen@intel.com>
8 years agoadd strict_mode(MHA-1115)
Andrii Boichuk [Wed, 23 Jul 2014 13:35:36 +0000 (16:35 +0300)]
add strict_mode(MHA-1115)

8 years agoEnable ssl_veirify option in mic config file
Huanhuan Li [Mon, 14 Jul 2014 02:45:12 +0000 (10:45 +0800)]
Enable ssl_veirify option in mic config file

There is an option 'ssl_veirfy=no' in mic.conf, but it is commented. Now enable
this feature.

Fixes: #2017
Change-Id: I92c98cfd7a399bed4d5e955681e857ea7990ad8d

8 years agofix md5sum format able to check by 'md5sum -c'
Gui Chen [Mon, 9 Jun 2014 03:11:19 +0000 (23:11 -0400)]
fix md5sum format able to check by 'md5sum -c'

use two spaces instead of ' *' as seprator in MD5SUM

Change-Id: I0f37c3366d9e0c44c82b74c78d49a9647ce477ad
Signed-off-by: Gui Chen <gui.chen@intel.com>
8 years agofix Package_constPtr AttributeError: status
Gui Chen [Mon, 9 Jun 2014 02:33:48 +0000 (22:33 -0400)]
fix Package_constPtr AttributeError: status

actually the modified 'item' should be PoolItem, which has 'status',
instead of Package

Change-Id: Ib29bc770281a5d32773a2165c65cc6c4431cb51b
Signed-off-by: Gui Chen <gui.chen@intel.com>
8 years agotypo fix
Huanhuan Li [Fri, 6 Jun 2014 01:23:50 +0000 (09:23 +0800)]
typo fix

Change-Id: Id451840526902cbca9e5dd6a4cd0b730bb2bebfa

8 years agobump up to 0.25.1
Gui Chen [Wed, 28 May 2014 10:15:05 +0000 (06:15 -0400)]
bump up to 0.25.1

Change-Id: Iafafcc2d03f58881d9907003c61c72f102e91845
Signed-off-by: Gui Chen <gui.chen@intel.com>
8 years agoadd requires for cElementTree module
Gui Chen [Wed, 28 May 2014 05:42:44 +0000 (01:42 -0400)]
add requires for cElementTree module

Change-Id: Id0a92e7a68677c1ab51b13401a6befb6a2b72f7a
Signed-off-by: Gui Chen <gui.chen@intel.com>
8 years agoAdd unitest for mic/archive.py
Huanhuan Li [Thu, 24 Apr 2014 09:54:15 +0000 (17:54 +0800)]
Add unitest for mic/archive.py

Change-Id: Ic75ef5a31a5b935958de7eaa3f2995dfdaad86ef

8 years agobump up to release 0.25
Gui Chen [Thu, 22 May 2014 12:29:28 +0000 (08:29 -0400)]
bump up to release 0.25

Change-Id: I9dfe1537173e9521d04ac06e98316fed28f407e4
Signed-off-by: Gui Chen <gui.chen@intel.com>
8 years agobump up to 0.25-rc1
Gui Chen [Wed, 21 May 2014 05:47:38 +0000 (01:47 -0400)]
bump up to 0.25-rc1

Change-Id: Ie870a858727935eb6de19a6b6494c471de66e2a0
Signed-off-by: Gui Chen <gui.chen@intel.com>
8 years agoMake the error more precise
Huanhuan Li [Wed, 21 May 2014 02:43:18 +0000 (10:43 +0800)]
Make the error more precise

Change-Id: I11879de8063534eb5a59b80edbfcd9a73aefdc5d

8 years agoremove --preserve-order option in tar fs image
Gui Chen [Mon, 19 May 2014 06:45:32 +0000 (02:45 -0400)]
remove --preserve-order option in tar fs image

Change-Id: Ib510143290f49c1b791424201401085368b9d1bb
Signed-off-by: Gui Chen <gui.chen@intel.com>
8 years agoFix pylint tips
Huanhuan Li [Mon, 21 Apr 2014 05:52:27 +0000 (13:52 +0800)]
Fix pylint tips

Change-Id: Id323538fd9bb643bdf4d5f94e77f7578eb85f14e
C:  1,0: Missing docstring
E: 19,0: No name '__version__' in module 'mic'
E: 20,0: No name 'utils' in module 'mic'
E: 21,0: No name 'conf' in module 'mic'
E: 22,0: No name 'plugin' in module 'mic'
W:101,14:MicCmd.help_create: Access to a protected member _help_reindent of a client class
W:102,14:MicCmd.help_create: Access to a protected member _help_preprocess of a client class
R: 94,4:MicCmd.help_create: Method could be a function
C:108,4:MicCmd.do_create: Missing docstring
R:108,4:MicCmd.do_create: Method could be a function
C:112,4:MicCmd._root_confirm: Missing docstring
R:112,4:MicCmd._root_confirm: Method could be a function
R:120,4:MicCmd.do_convert: Too many local variables (16/15)
E:148,8:MicCmd.do_convert: Instance of 'ConfigMgr' has no 'convert' member
W:120,25:MicCmd.do_convert: Unused argument 'subcmd'
R:120,4:MicCmd.do_convert: Too many branches (16/12)
E:216,8:MicCmd.do_chroot: Instance of 'ConfigMgr' has no 'chroot' member
W:192,24:MicCmd.do_chroot: Unused argument 'subcmd'

8 years agoput logfile setting up prior to other error output
Gui Chen [Mon, 19 May 2014 05:41:14 +0000 (01:41 -0400)]
put logfile setting up prior to other error output

except release optioin applied

Change-Id: I10eaac322424460694566a79eda5e53642d798fe
Signed-off-by: Gui Chen <gui.chen@intel.com>
8 years agofix incorrect location outdir to destdir
Gui Chen [Wed, 14 May 2014 10:36:16 +0000 (06:36 -0400)]
fix incorrect location outdir to destdir

Change-Id: Ic0ec2d5ed9cefbc90d8a4b1149ecb7d984ad1e9f
Signed-off-by: Gui Chen <gui.chen@intel.com>
8 years agorelocate create.logfile to conf module
Gui Chen [Wed, 14 May 2014 06:37:16 +0000 (02:37 -0400)]
relocate create.logfile to conf module

Change-Id: I276069bb1c33c1ef9a6c3eaac5ce409c211a9a51
Signed-off-by: Gui Chen <gui.chen@intel.com>
8 years agorelocate create.outdir to conf module
Gui Chen [Wed, 14 May 2014 06:03:20 +0000 (02:03 -0400)]
relocate create.outdir to conf module

Change-Id: I1a9007e9b3d8abfa91091ab063f75bb1f6cd3808
Signed-off-by: Gui Chen <gui.chen@intel.com>
8 years agorelocate create.name to conf module
Gui Chen [Wed, 14 May 2014 05:57:26 +0000 (01:57 -0400)]
relocate create.name to conf module

Change-Id: Id3e8d2cbf0a4e08ecfbe7941c4967206cd40cd88
Signed-off-by: Gui Chen <gui.chen@intel.com>
8 years agoAdd more log info to show compress command.
Sun Lihong [Thu, 15 May 2014 09:18:04 +0000 (17:18 +0800)]
Add more log info to show compress command.

Fixes: #1880

Change-Id: I9d81991364aaa57504777e530ba75129dbbcf0f8

8 years agoAArch64 binformat line fix
Vyacheslav Barinov [Tue, 6 May 2014 10:57:46 +0000 (14:57 +0400)]
AArch64 binformat line fix

There was a typo in binformat line for an AArch64 which made it impossible to
perform firmware builds for this architecture.

Change-Id: I7cc300a5a58dc9fee353f314677d6ab4b2e37d6b
Signed-off-by: Vyacheslav Barinov <v.barinov@samsung.com>
8 years agoduplicate locale setting under /etc/locale.conf
Gui Chen [Thu, 8 May 2014 06:21:07 +0000 (02:21 -0400)]
duplicate locale setting under /etc/locale.conf

to be compatible with systemd and system V, /etc/sysconfig/i18n and /etc/locale.conf are both existed

Fixes: #1745

Change-Id: I4d508d506161371765cfab6821da9a61223493ef
Signed-off-by: Gui Chen <gui.chen@intel.com>
8 years agoRaise exception if fail to extract archived file
Huanhuan Li [Wed, 7 May 2014 06:47:36 +0000 (14:47 +0800)]
Raise exception if fail to extract archived file

It's meaningless to return the value if the source archive name exists

Change-Id: Ifc06a09243c56d6035ef233debd9267f053669e0

8 years agomore check before extracting archive
Huanhuan Li [Wed, 7 May 2014 05:38:00 +0000 (13:38 +0800)]
more check before extracting archive

Change-Id: Ieca43aa54cd384392b288aadd66c3e443eaca701

8 years agomore check before making archive
Gui Chen [Tue, 6 May 2014 10:43:08 +0000 (06:43 -0400)]
more check before making archive

Change-Id: I5a205a06d354e559e7c62767661738a59585788b
Signed-off-by: Gui Chen <gui.chen@intel.com>
8 years agoAdd two output info to avoid duplicat "Checking filesystem"
Sun Lihong [Tue, 6 May 2014 10:08:44 +0000 (18:08 +0800)]
Add two output info to avoid duplicat "Checking filesystem"

"loop", "liveusb", "livecd" image creation logs all have duplicate
info of "Checking filesystem", add more info to avoid misunderstanding.

Change-Id: I416e71cd312ae5cad23468bb2d7d191358bf4309

8 years agoFix pylint tips
Huanhuan Li [Mon, 21 Apr 2014 06:52:55 +0000 (14:52 +0800)]
Fix pylint tips

Change-Id: Ic0805cc13abc16afd1881c7513edf2f9f980d0fc
C: 58,0: Line too long (87/80)
W: 20,24: Redefining built-in 'id'
C:  1,0: Missing docstring
C: 11,4: Invalid name "version" for type constant (should match (([A-Z_][A-Z0-9_]*)|(__.*__))$)
C: 13,4: Invalid name "version" for type constant (should match (([A-Z_][A-Z0-9_]*)|(__.*__))$)
W: 26,8: No exception type(s) specified
C: 20,13: Invalid name "dist" for type constant (should match (([A-Z_][A-Z0-9_]*)|(__.*__))$)
C: 20,19: Invalid name "ver" for type constant (should match (([A-Z_][A-Z0-9_]*)|(__.*__))$)
C: 20,24: Invalid name "id" for type constant (should match (([A-Z_][A-Z0-9_]*)|(__.*__))$)
C: 43,0: Invalid name "prefix" for type constant (should match (([A-Z_][A-Z0-9_]*)|(__.*__))$)
C: 45,0: Invalid name "root" for type constant (should match (([A-Z_][A-Z0-9_]*)|(__.*__))$)
C: 47,0: Invalid name "conffile" for type constant (should match (([A-Z_][A-Z0-9_]*)|(__.*__))$)
C: 49,0: Invalid name "conf_str" for type constant (should match (([A-Z_][A-Z0-9_]*)|(__.*__))$)
C: 50,0: Invalid name "conf_str" for type constant (should match (([A-Z_][A-Z0-9_]*)|(__.*__))$)

8 years agotypo fix
Gui Chen [Tue, 6 May 2014 07:06:43 +0000 (03:06 -0400)]
typo fix

Change-Id: I0bc9288562694f3a12bb6cf46ffa5c0cadebd236
Signed-off-by: Gui Chen <gui.chen@intel.com>
8 years agoarchive.py: refine extract_archive to extract tarball file
Gui Chen [Sat, 26 Apr 2014 04:23:30 +0000 (00:23 -0400)]
archive.py: refine extract_archive to extract tarball file

Change-Id: I5af9f17de9d1ac5d12bf1706ce7609ea4c4e201f
Signed-off-by: Gui Chen <gui.chen@intel.com>
8 years agoarchive.py: auto detect format in decompression and refine get_xxx_formats/get_xxx_su...
Gui Chen [Sat, 26 Apr 2014 04:03:35 +0000 (00:03 -0400)]
archive.py: auto detect format in decompression and refine get_xxx_formats/get_xxx_suffixes

it will detect the format automatically when decompressing
add get_compress_suffixes to list all supported suffixes in compression
clear get_compress_formats
clear get_archive_formats

Change-Id: I1fb2117e4b04c382836b81760bb423cc62f2fd5e
Signed-off-by: Gui Chen <gui.chen@intel.com>
8 years agoavoid to compress/decompress a non-file object
Gui Chen [Fri, 25 Apr 2014 06:13:28 +0000 (02:13 -0400)]
avoid to compress/decompress a non-file object

Change-Id: I0c43f449175325ba9314e56151a822b3aee0ec21
Signed-off-by: Gui Chen <gui.chen@intel.com>
8 years agoPylint warnings.
Sun Lihong [Wed, 30 Apr 2014 07:01:31 +0000 (15:01 +0800)]
Pylint warnings.

C:139,8:Zypp._zyppQueryPackage: Comma not followed by a space
        query.addAttribute(zypp.SolvAttr.name,pkg)
                                             ^^
C:146,8:Zypp._splitPkgString: Comma not followed by a space
        sp = pkg.rsplit(".",1)
                           ^^
C:213,12:Zypp.selectPackage: Comma not followed by a space
            q.addAttribute(zypp.SolvAttr.name,pattern)
                                             ^^
C:217,12:Zypp.selectPackage: Comma not followed by a space
            q.addAttribute(zypp.SolvAttr.name,name)
                                             ^^
C:221,12:Zypp.selectPackage: Comma not followed by a space
            q.addAttribute(zypp.SolvAttr.name,pkg)
                                             ^^
W: 19,0: Unused import sys
W: 35,0: Unused import BaseImageCreator
W: 20,0: Unused import re

Change-Id: Ie6bdff4de495e93b0dd534c276cb77d5270db114

Conflicts:
plugins/imager/raw_plugin.py

8 years agoPylint error of partitionedfs.py and proxy.py
Sun Lihong [Fri, 18 Apr 2014 09:04:52 +0000 (17:04 +0800)]
Pylint error of partitionedfs.py and proxy.py

C: 44,8:unset_proxy_environ: Operator not preceded by a space
        ENV=env.upper()
           ^
C: 44,8:unset_proxy_environ: Invalid name "ENV" (should match [a-z_][a-z0-9_]{2,30}$)
C: 77,4:_ip_to_int: Operator not preceded by a space
    ipint=0
         ^
C: 78,4:_ip_to_int: Operator not preceded by a space
    shift=24
C: 85,4:_int_to_ip: Operator not preceded by a space
    ipaddr=""
          ^
C: 86,4:_int_to_ip: Operator not preceded by a space
    shift=0
         ^
C:111,12:_set_noproxy_list: Comma not followed by a space
            _my_noproxy_list.append({"match":0,"needle":item})
                                              ^^
C:115,12:_set_noproxy_list: Comma not followed by a space
            _my_noproxy_list.append({"match":1,"needle":item})
                                              ^^
C:127,16:_set_noproxy_list: Invalid name "ip" (should match [a-z_][a-z0-9_]{2,30}$)
C:129,16:_set_noproxy_list: Operator not preceded by a space
                shift=24
                     ^
C:130,16:_set_noproxy_list: Operator not preceded by a space
                netmask=0
                       ^
C:136,12:_set_noproxy_list: Comma not followed by a space
            _my_noproxy_list.append({"match":2,"needle":ip,"netmask":netmask})

Change-Id: Iaf24729b3231b9f313af333fe58096d234d3e515

8 years agoadd _do_tar and _do_untar to utilize 'tar' command
Gui Chen [Fri, 25 Apr 2014 06:04:46 +0000 (02:04 -0400)]
add _do_tar and _do_untar to utilize 'tar' command

Change-Id: Iefc0ca78636e07ffe125560c3336031c5be4f9fb
Signed-off-by: Gui Chen <gui.chen@intel.com>
8 years agoclean up unused code
Gui Chen [Wed, 23 Apr 2014 08:43:41 +0000 (04:43 -0400)]
clean up unused code

Change-Id: I483e4253437a3fa9905ff354f7739b15f71ec2c2
Signed-off-by: Gui Chen <gui.chen@intel.com>
Conflicts:
mic/utils/misc.py

8 years agoadd rewritten moudle archive to handle archiving and compressing
Gui Chen [Wed, 23 Apr 2014 08:33:06 +0000 (04:33 -0400)]
add rewritten moudle archive to handle archiving and compressing

Change-Id: I9fd94ca3b3d3460ecb2af618baa329f04a6a3bfb
Signed-off-by: Gui Chen <gui.chen@intel.com>
8 years agoswitch to use new archive module
Gui Chen [Wed, 23 Apr 2014 08:37:30 +0000 (04:37 -0400)]
switch to use new archive module

Change-Id: Ibe1f956b178952f150b4d2285d3642dc73a06bb5
Signed-off-by: Gui Chen <gui.chen@intel.com>
9 years agobump up to mic 0.24.4
Lihong Sun [Thu, 22 Jan 2015 09:10:15 +0000 (04:10 -0500)]
bump up to mic 0.24.4

Change-Id: Id1f831380d8b31b1818f9d54311d17e26439087a

9 years agobump up to 0.24.4 rc1
Lihong Sun [Thu, 22 Jan 2015 03:00:18 +0000 (22:00 -0500)]
bump up to 0.24.4 rc1

Change-Id: If427b593950794f4810bc49908ddb88cd981e0f6

9 years agoMount option is modified to be more general
Gyeoungmin Kim [Wed, 3 Dec 2014 05:43:52 +0000 (14:43 +0900)]
Mount option is modified to be more general
Supporting for using command line tools as toybox, busybox.

Fixes: #2359

Change-Id: I3b5935609d83601900f03c978e48e95490559143
Signed-off-by: Gyeoungmin Kim <g5.kim@samsung.com>
9 years agoPut log file in 'release' output always.
Lihong [Tue, 11 Nov 2014 03:26:44 +0000 (22:26 -0500)]
Put log file in 'release' output always.

When image creation failed, log created by '--release' will be
located under 'outdir' instead of 'release_dir'. Also put the
log file under 'release_dir' when image creation failed.

mic-appliance create images through executing '/etc/init.d/mic'
script in the appliance. 'time mic cr auto $extra /media/out/$ks'
is called, and '--release' option is used when creating images.

In the past, 3 points about the logfile created by '--release':
1. Create logfile in default 'out_dir' which is specified in
'/etc/mic/mic.conf'. 2. Before creating images, check whether the
'release_dir' exists, if it exists, remove the whole directory. 3.
After the image creation finished, copy the logfile to the final
'release_dir' where the images located. So when the image creation
failed, no logfile found in 'release_dir', the logfile is under default
'out_dir'.

If directly change the 'out_dir' to 'dest_dir' in conf.py, the image
creation will fail if there already exist a same 'release_dir', because
this existed 'release_dir' will be removed when creating images, but the
logfile use this dir at the time, so it cannot be removed, then mic will
fail and exit. So right now, if 'release_dir' already existed, just remove
the files under it except the newly created logfile, and remain the dir.

Fixes: #2212

Change-Id: Ibdc9af3d0e03ca966517d05b1e519d4d9fb3ad43

9 years agoAdd 'python-xml' dependency of mic
lihongsx [Tue, 5 Aug 2014 02:38:37 +0000 (10:38 +0800)]
Add 'python-xml' dependency of mic

Fixes: #2028

Change-Id: Ib8eec98150115bb4b36e7226d1cfa91e29de682c

9 years agoadd requires for cElementTree module
Gui Chen [Wed, 28 May 2014 05:42:44 +0000 (01:42 -0400)]
add requires for cElementTree module

Change-Id: Id0a92e7a68677c1ab51b13401a6befb6a2b72f7a
Signed-off-by: Gui Chen <gui.chen@intel.com>