summaryrefslogtreecommitdiff
path: root/tools
AgeCommit message (Collapse)AuthorFilesLines
2022-08-18Merge release-0.28.17 from 'tools/mic'upstream/0.28.17submit/tizen/20220818.092614biao716.wang1-0/+3
Change-Id: I929aa3c676c041e6ab361c3b6dd5a2613ed6cd0d Signed-off-by: biao716.wang <biao716.wang@samsung.com>
2018-01-30add --use-mic-in-bootstrap optionDohyung Kim1-0/+5
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 Kim1-0/+1
Change-Id: I66ed6a999b20c94238e7fdc29ee68782ab4cd241 Signed-off-by: Dohyung Kim <dohyung2.kim@samsung.com>
2017-08-08Add new option of tpk_installyuhuan.yang1-1/+3
Change-Id: Id67c37b143f723e98491aad1d6730446149f01a5
2017-07-14Add new option of --run_scriptyuhuan.yang1-0/+2
Change-Id: I7c2d194ba3bcc4e8fc78073bc922f6e7eb853821
2017-07-13Use cpio gzip in mic.xiaojuan.mao1-3/+0
Change-Id: Ic7b3512b153ec5c92cd47a281bab8341f01acaf0
2017-07-13add SIGTERM handler for exit gracefullyDohyung Kim1-0/+7
mic exit abnormally when it get SIGTERM from kill command or jenkins cancel. mouned directories reamin. it should be umount. Signed-off-by: Dohyung Kim <dohyung2.kim@samsung.com> Change-Id: I71d40bc409ffaed13f2c78ccfd6b03059a934a95
2017-07-13display all rpm debug messages in debug modeDohyung Kim1-1/+1
- debug mode: RPMLOG_DEBUG - non-debug mode: RPMLOG_NOTICE(default) Signed-off-by: Dohyung Kim <dohyung2.kim@samsung.com> Change-Id: Ibb01112e556ee99127001faeb9dc2a2c0827f70b
2017-07-13Use cpio gzip in mic.xiaojuan.mao1-4/+7
Change-Id: Ifce99807698d3a35fd3dddcdf8f9d60f4c2bb22c
2016-09-23Add subcommand option parameters(-v, -d, -i) for fixing tizen2.4 mobile issuejianzhong.fang1-3/+12
Change-Id: I18f0667bc7537aaf1e8eee5ec3320f1b52058071 Signed-off-by: jianzhong.fang <jz.fang@samsung.com>
2016-06-16Revert "Drop mic raw image format support"jianzhong.fang1-0/+13
Change-Id: I2752f5c804f215ba96b5cfbabfefb1c383bb5803
2016-03-17Revert "Add lzop compress format"jianzhong.fang1-6/+4
Change-Id: If63177dbb1ae2a8f1a2fc1cbb849cd51fc1ea957
2016-02-04Update the mic docjianzhong.fang1-2/+3
Change-Id: Id17882b91640f5390198c17bbf3bc2fdb8699668
2016-02-04Using argparse module to parse the cmd lineyyh1-187/+207
Conflicts: plugins/imager/loop_plugin.py
2016-02-04Drop MIC livecd image format support.jianzhong.fang1-1/+0
Change-Id: I22032747185fb6f2344c4a88ca227503d9369823
2016-02-04Drop MIC liveusb image format supportjianzhong.fang1-2/+1
Change-Id: I48e2f647b8278107bd4ce84c0c9c0237dec8b948
2016-02-04Fix pylint tipsHuanhuan Li1-58/+63
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'
2016-02-04Pylint warnings.Sun Lihong1-4/+4
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
2014-02-27Show hostname in logSun Lihong1-1/+1
Show hostname before distro info in log. Fixes: #1644 Change-Id: Ibb9bdfa8bd1920084fbcdcec7a233102aeda0762
2013-12-04add options --interactive/--non-interactiveGui Chen1-0/+11
this option pair can enable/disable interactive output Fixes: #1243 Change-Id: I57f63aed8406133f9e67c7261fe01975d34195c0 Signed-off-by: Gui Chen <gui.chen@intel.com>
2013-10-15rewrite msger module based on loggingGui Chen1-4/+4
this new logging module is fully compatible with the old msger module, it supports interactive mode, logs the messages with specified levels to specified stream, can also catch all error messages including the involved 3rd party modules to the logger, and supports colorized level name besides, disable some test suites to pass the Tester Change-Id: Icecbcd5e6848477a7a6c213f5a95e41396e1fbb0 Signed-off-by: Gui Chen <gui.chen@intel.com>
2013-05-05tools/mic: rename variablelihuanhuan1-12/+12
Get ride of these pylint warnings: C: 82,8:MicCmd.help_create: Invalid name "cr" for type variable (should match [a-z_][a-z0-9_]{2,30}$) C:220,8: Invalid name "mic" for type constant (should match (([A-Z_][A-Z0-9_]*)|(__.*__))$) C:227,20: Invalid name "e" for type variable (should match [a-z_][a-z0-9_]{2,30}$) Change-Id: Ic5cf5de9ca253a2725d7dcff0ecb9aba84eaf587
2013-09-15drop VERSION file, use __version__ directly in mic moduleGui Chen1-2/+1
Change-Id: I0f0ea1a93d8bbc924f5853c0d161c286251eb670 Signed-off-by: Gui Chen <gui.chen@intel.com>
2013-03-12Remove useless try and reraise blocks.Huang Hao1-5/+2
These code catch all exceptions and simply reraise them, which is equivalent to not writing the try block. So just remove them to cleanup. Change-Id: I965356746a5b349458205de9c5a1d6bf97bf8d93
2013-02-18Move function optparser_setup out of class MicCmdHuang Hao1-14/+16
Found this problem by pylint. Decorator optparser_setup is not a instance/class/static method of MicCmd, so move it out. Also fix wrong indent. Change-Id: I0315951134360fa6081b904e6323e57c16b7ef9f
2012-09-26support running specified command for mic chrootyanqingx.li1-7/+12
usage: mic chroot CHROOT [COMMAND [ARGS]] this feature enables running command with non-interactive Change-Id: Ic7e74a00c83e3cef5684c2ee94a755389ba4276d
2012-08-02better handling for print versionGui Chen1-3/+9
Signed-off-by: Gui Chen <gui.chen@intel.com>
2012-08-01fix minor bug of 'mic --version'Gui Chen1-0/+2
Signed-off-by: Gui Chen <gui.chen@intel.com>
2012-07-12fixing the compatibile problem of misc.get_distroJF Ding1-1/+1
2012-07-12concise output of distro information printingJF Ding1-4/+1
2012-07-10put mic version to build logGui Chen1-0/+4
Signed-off-by: Gui Chen <gui.chen@intel.com>
2012-02-17development after 0.6 releaseJF Ding1-4/+8
using the 0.7git version and unified style and comments for recent patches
2012-02-15give hint when converted image existedGui Chen1-0/+14
Signed-off-by: Gui Chen <gui.chen@intel.com>
2012-02-07typo fixGui Chen1-1/+1
Signed-off-by: Gui Chen <gui.chen@intel.com>
2012-01-17mic chroot -s dest, unpack image and save to fs imageGui Chen1-0/+5
Signed-off-by: Gui Chen <gui.chen@intel.com>
2012-01-16add shell option for convertor to enable modification before conertingGui Chen1-0/+6
recreate image modified by internal shell Signed-off-by: Gui Chen <gui.chen@intel.com>
2012-01-06space check update and catch no space exceptionGui Chen1-1/+7
Signed-off-by: Gui Chen <gui.chen@intel.com>
2011-12-28changes of message and coding styleJF Ding1-6/+14
2011-12-27fix convert and chroot issue caused by not existed imageGui Chen1-0/+5
Signed-off-by: Gui Chen <gui.chen@intel.com>
2011-12-12more concise plugin related expressionsJF Ding1-6/+7
2011-12-12make the configmgr betterJF Ding1-1/+1
but still need more refination later
2011-11-17support btrfs and ext4 for creator, chroot, convertGui Chen1-1/+1
it's not backported from mic2 Signed-off-by: Gui Chen <gui.chen@intel.com>
2011-11-10typo: fix usage message typo errorZhang Qiang1-3/+3
2011-11-04Some fixes to be compatible with python 2.5Gui Chen1-1/+1
Signed-off-by: Gui Chen <gui.chen@intel.com>
2011-11-03make tools/mic more flexible for python pathJF Ding1-1/+1
to make it live with virtualenv
2011-10-27better handling for existing files checksJF Ding1-0/+3
2011-10-19cleanup deprecated codeJF Ding1-2/+0
2011-10-10unify the license header of all filesJF Ding1-13/+11
2011-09-16better error output for CreateErrorJF Ding1-1/+1
2011-09-05move msger.run to utils.runner module and more apisJF Ding1-0/+10
in new separate module mic/utils/runner.py, three new apis provided: runner.show (similar with msger.run) runner.quiet runner.outs and a more generic runner.runtool