tools/mic.git
12 years agoreplace most of subprocess calls by new runner apis
JF Ding [Wed, 7 Sep 2011 00:44:28 +0000 (09:44 +0900)]
replace most of subprocess calls by new runner apis

only several exceptions remained:
 chroot ones
 pipe chained ones

12 years agomove msger.run to utils.runner module and more apis
JF Ding [Mon, 5 Sep 2011 09:03:55 +0000 (18:03 +0900)]
move msger.run to utils.runner module and more apis

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

12 years agoseparate proxy funcs from misc.py and del deprecated
JF Ding [Mon, 5 Sep 2011 06:44:31 +0000 (15:44 +0900)]
separate proxy funcs from misc.py and del deprecated

12 years agofixed msger.run error when arg is empty str
JF Ding [Mon, 5 Sep 2011 03:40:04 +0000 (12:40 +0900)]
fixed msger.run error when arg is empty str

12 years agoremove improper exception handlings
JF Ding [Mon, 5 Sep 2011 01:46:08 +0000 (10:46 +0900)]
remove improper exception handlings

12 years agobetter raw()/run() handling in msger
JF Ding [Mon, 5 Sep 2011 01:45:12 +0000 (10:45 +0900)]
better raw()/run() handling in msger

12 years agoimage type "fs" to check and confirm the exists dir
JF Ding [Fri, 2 Sep 2011 07:59:20 +0000 (16:59 +0900)]
image type "fs" to check and confirm the exists dir

12 years agodo not use default value for "lang" in kickstart
JF Ding [Fri, 2 Sep 2011 07:22:44 +0000 (16:22 +0900)]
do not use default value for "lang" in kickstart

then will not write /etc/sysconfig/i18n

12 years agotypos in chroot and convert subcmd
JF Ding [Fri, 2 Sep 2011 07:20:07 +0000 (16:20 +0900)]
typos in chroot and convert subcmd

12 years agocatch KeyboardInt and quit decently
JF Ding [Fri, 2 Sep 2011 06:38:36 +0000 (15:38 +0900)]
catch KeyboardInt and quit decently

12 years agosuppress all rpm warning msg in non-debug mode
JF Ding [Fri, 2 Sep 2011 05:58:49 +0000 (14:58 +0900)]
suppress all rpm warning msg in non-debug mode

12 years agowrapper all subprocess call using msger.run
JF Ding [Fri, 2 Sep 2011 05:24:05 +0000 (14:24 +0900)]
wrapper all subprocess call using msger.run

all the output of external tools can be controlled

12 years agoenhancement for 'usage' message
JF Ding [Fri, 2 Sep 2011 02:22:11 +0000 (11:22 +0900)]
enhancement for 'usage' message

12 years agobetter exception handlings
JF Ding [Fri, 2 Sep 2011 01:50:01 +0000 (10:50 +0900)]
better exception handlings

12 years agorefine and cleanup the zypp backend plugin
JF Ding [Thu, 1 Sep 2011 11:02:23 +0000 (20:02 +0900)]
refine and cleanup the zypp backend plugin

12 years agoseparate check_EULA code to be common
JF Ding [Thu, 1 Sep 2011 10:01:53 +0000 (19:01 +0900)]
separate check_EULA code to be common

12 years agorefine the yumpkgmgr plugin code
JF Ding [Thu, 1 Sep 2011 09:15:34 +0000 (18:15 +0900)]
refine the yumpkgmgr plugin code

12 years agoenhance msger.ask and new pause()
JF Ding [Thu, 1 Sep 2011 09:15:04 +0000 (18:15 +0900)]
enhance msger.ask and new pause()

12 years agolivecd/liveusb will quit decently for arm images
JF Ding [Thu, 1 Sep 2011 08:21:59 +0000 (17:21 +0900)]
livecd/liveusb will quit decently for arm images

because livecd/liveusb images need 'syslinux' which is x86 only package,
we will never support livecd/liveusb formats for arm images.

12 years agorefine the liveusb code and cleanup
JF Ding [Thu, 1 Sep 2011 07:16:44 +0000 (16:16 +0900)]
refine the liveusb code and cleanup

12 years agorefine the livecd plugin code and cleanup unused part
JF Ding [Thu, 1 Sep 2011 06:56:49 +0000 (15:56 +0900)]
refine the livecd plugin code and cleanup unused part

12 years agorefine the raw plugin code
JF Ding [Thu, 1 Sep 2011 06:39:58 +0000 (15:39 +0900)]
refine the raw plugin code

12 years agorefine the loop plugin code
JF Ding [Thu, 1 Sep 2011 06:24:11 +0000 (15:24 +0900)]
refine the loop plugin code

12 years agorefine the fs plugin code and other cleanups
JF Ding [Thu, 1 Sep 2011 06:14:23 +0000 (15:14 +0900)]
refine the fs plugin code and other cleanups

12 years agocheck the license headers carefully for all files
JF Ding [Thu, 1 Sep 2011 03:06:31 +0000 (12:06 +0900)]
check the license headers carefully for all files

12 years agoupdate setup.py for ubuntu installation
JF Ding [Thu, 1 Sep 2011 02:32:38 +0000 (11:32 +0900)]
update setup.py for ubuntu installation

and open the 'develop' cmd by using setuptools

12 years agofixed the lost makedirs import symbol
JF Ding [Tue, 30 Aug 2011 07:47:21 +0000 (15:47 +0800)]
fixed the lost makedirs import symbol

12 years agomore compact plugin framwork
JF Ding [Tue, 30 Aug 2011 05:32:56 +0000 (13:32 +0800)]
more compact plugin framwork

12 years agoincluded 3rdparty urlgrabber modules
JF Ding [Sun, 28 Aug 2011 07:48:58 +0000 (15:48 +0800)]
included 3rdparty urlgrabber modules

The python-urlgrabber-3.1.0 is the last and stable pure python
version. MIC included it to decrease the dependencies.

12 years agochange the default tmp/cache dir and make sure existing
JF Ding [Sun, 28 Aug 2011 07:42:08 +0000 (15:42 +0800)]
change the default tmp/cache dir and make sure existing

12 years agoupdate msger to refine nocolor output
JF Ding [Wed, 24 Aug 2011 10:36:08 +0000 (18:36 +0800)]
update msger to refine nocolor output

12 years agoremove all the unnecessary wildcard import
JF Ding [Wed, 24 Aug 2011 06:06:52 +0000 (14:06 +0800)]
remove all the unnecessary wildcard import

12 years agoSupport local rpm packages
Shuangquan Zhou [Wed, 24 Aug 2011 03:05:46 +0000 (11:05 +0800)]
Support local rpm packages

Signed-off-by: Shuangquan Zhou <shuangquan.zhou@intel.com>
12 years agoAdded a testcase for armv7hl
Shuangquan Zhou [Tue, 23 Aug 2011 03:22:01 +0000 (11:22 +0800)]
Added a testcase for armv7hl

Signed-off-by: Shuangquan Zhou <shuangquan.zhou@intel.com>
12 years agoAdded a testcase about ARM
Shuangquan Zhou [Tue, 23 Aug 2011 03:06:38 +0000 (11:06 +0800)]
Added a testcase about ARM
Signed-off-by: Shuangquan Zhou <shuangquan.zhou@intel.com>
12 years agocode cleanup
JF Ding [Mon, 22 Aug 2011 11:20:55 +0000 (19:20 +0800)]
code cleanup

12 years agocleanup deprecated functions in misc.py
JF Ding [Sun, 21 Aug 2011 08:04:30 +0000 (16:04 +0800)]
cleanup deprecated functions in misc.py

12 years agomore cleanup
JF Ding [Sat, 20 Aug 2011 03:47:57 +0000 (11:47 +0800)]
more cleanup

12 years agoadd verbose/debug functions to msger
JF Ding [Fri, 19 Aug 2011 13:56:49 +0000 (21:56 +0800)]
add verbose/debug functions to msger

12 years agochange the path of pykickstart module
JF Ding [Fri, 19 Aug 2011 13:28:35 +0000 (21:28 +0800)]
change the path of pykickstart module

12 years agoMerge "Updated MIC autotest framework"
JF Ding [Fri, 19 Aug 2011 09:37:09 +0000 (17:37 +0800)]
Merge "Updated MIC autotest framework"

12 years agoFix kickstart issue
Gui Chen [Fri, 19 Aug 2011 09:22:37 +0000 (17:22 +0800)]
Fix kickstart issue

Signed-off-by: Gui Chen <gui.chen@intel.com>
12 years agoUpdated MIC autotest framework
Shuangquan Zhou [Fri, 19 Aug 2011 09:19:18 +0000 (17:19 +0800)]
Updated MIC autotest framework

Signed-off-by: Shuangquan Zhou <shuangquan.zhou@intel.com>
12 years agochange the layout of the kickstart module
JF Ding [Fri, 19 Aug 2011 08:39:54 +0000 (16:39 +0800)]
change the layout of the kickstart module

12 years agoSupport outdir
Gui Chen [Fri, 19 Aug 2011 08:34:56 +0000 (16:34 +0800)]
Support outdir

Signed-off-by: Gui Chen <gui.chen@intel.com>
12 years agoreplace most the print with msger module
JF Ding [Fri, 19 Aug 2011 07:57:52 +0000 (15:57 +0800)]
replace most the print with msger module

12 years agoMerge "Modified the image name for convertor"
JF Ding [Fri, 19 Aug 2011 08:11:09 +0000 (16:11 +0800)]
Merge "Modified the image name for convertor"

12 years agoModified the image name for convertor
Shuangquan Zhou [Fri, 19 Aug 2011 07:08:06 +0000 (15:08 +0800)]
Modified the image name for convertor

Signed-off-by: Shuangquan Zhou <shuangquan.zhou@intel.com>
12 years agoMerge "Modified the indication of yum's downloading progress"
JF Ding [Fri, 19 Aug 2011 04:00:48 +0000 (12:00 +0800)]
Merge "Modified the indication of yum's downloading progress"

12 years agocleanup cmdln opts and update cmdln module to latest
JF Ding [Fri, 19 Aug 2011 03:42:57 +0000 (11:42 +0800)]
cleanup cmdln opts and update cmdln module to latest

12 years agoModified the indication of yum's downloading progress
Shuangquan Zhou [Fri, 19 Aug 2011 03:18:31 +0000 (11:18 +0800)]
Modified the indication of yum's downloading progress

Signed-off-by: Shuangquan Zhou <shuangquan.zhou@intel.com>
12 years agoreorg the dir structure of kickstart modules
JF Ding [Fri, 19 Aug 2011 01:55:20 +0000 (09:55 +0800)]
reorg the dir structure of kickstart modules

The integrated pykickstart modules is from latest git.

12 years agoMerge "Merge in pykickstart code"
JF Ding [Thu, 18 Aug 2011 11:11:28 +0000 (19:11 +0800)]
Merge "Merge in pykickstart code"

12 years agoMerge in pykickstart code
Gui Chen [Thu, 18 Aug 2011 09:34:28 +0000 (17:34 +0800)]
Merge in pykickstart code

Signed-off-by: Gui Chen <gui.chen@intel.com>
12 years agoAdded ARM support and fixed some issues
Shuangquan Zhou [Thu, 18 Aug 2011 09:08:38 +0000 (17:08 +0800)]
Added ARM support and fixed some issues
Note:in host env,
     yum supports armv7l,armv7hl,armv7nhl,armv5tel
     zypp supports armv7l,armv5tel

Signed-off-by: Shuangquan Zhou <shuangquan.zhou@intel.com>
12 years agoadd msger.py for all unified colored message output
JF Ding [Thu, 18 Aug 2011 03:12:28 +0000 (11:12 +0800)]
add msger.py for all unified colored message output

and some code cleanup

12 years agoCorrect pluging help output message
Gui Chen [Thu, 18 Aug 2011 03:19:33 +0000 (11:19 +0800)]
Correct pluging help output message

Signed-off-by: Gui Chen <gui.chen@intel.com>
12 years agoRename image same with ks name
Gui Chen [Thu, 18 Aug 2011 02:42:14 +0000 (10:42 +0800)]
Rename image same with ks name

Signed-off-by: Gui Chen <gui.chen@intel.com>
12 years agoBear empty module name
Gui Chen [Thu, 18 Aug 2011 02:38:43 +0000 (10:38 +0800)]
Bear empty module name

Signed-off-by: Gui Chen <gui.chen@intel.com>
12 years agoImprove configmgr
Gui Chen [Thu, 18 Aug 2011 02:38:21 +0000 (10:38 +0800)]
Improve configmgr

Signed-off-by: Gui Chen <gui.chen@intel.com>
12 years agoImprove command line
Gui Chen [Thu, 18 Aug 2011 02:23:18 +0000 (10:23 +0800)]
Improve command line

Signed-off-by: Gui Chen <gui.chen@intel.com>
12 years agokill all the trailing spaces
JF Ding [Wed, 17 Aug 2011 08:08:32 +0000 (16:08 +0800)]
kill all the trailing spaces

12 years agomore tunings for message printing
JF Ding [Tue, 16 Aug 2011 11:08:59 +0000 (19:08 +0800)]
more tunings for message printing

12 years agoMerge "Add some useful prompt"
JF Ding [Tue, 16 Aug 2011 09:02:23 +0000 (17:02 +0800)]
Merge "Add some useful prompt"

12 years agoAdd some useful prompt
Shuangquan Zhou [Tue, 16 Aug 2011 08:47:35 +0000 (16:47 +0800)]
Add some useful prompt

12 years agoMerge "Add indication of downloading progress"
JF Ding [Tue, 16 Aug 2011 07:21:34 +0000 (15:21 +0800)]
Merge "Add indication of downloading progress"

12 years agoAdd indication of downloading progress
Shuangquan Zhou [Tue, 16 Aug 2011 06:55:54 +0000 (14:55 +0800)]
Add indication of downloading progress

12 years agoMerge "Enhanced chroot/convert"
JF Ding [Tue, 16 Aug 2011 06:19:34 +0000 (14:19 +0800)]
Merge "Enhanced chroot/convert"

12 years agoEnhanced chroot/convert
Shuangquan Zhou [Tue, 16 Aug 2011 02:45:24 +0000 (10:45 +0800)]
Enhanced chroot/convert

12 years agoadd version output for tools
JF Ding [Mon, 15 Aug 2011 10:49:17 +0000 (18:49 +0800)]
add version output for tools

12 years agocode cleanup for all new modules
JF Ding [Mon, 15 Aug 2011 10:19:36 +0000 (18:19 +0800)]
code cleanup for all new modules

12 years agocleanup for creator.py
JF Ding [Mon, 15 Aug 2011 09:55:04 +0000 (17:55 +0800)]
cleanup for creator.py

12 years agocleanup chroot.py
JF Ding [Mon, 15 Aug 2011 09:45:32 +0000 (17:45 +0800)]
cleanup chroot.py

12 years agorename all micng to mic
JF Ding [Mon, 15 Aug 2011 08:04:15 +0000 (16:04 +0800)]
rename all micng to mic

12 years agoUpdated chroot's cleanup function
Shuangquan Zhou [Mon, 15 Aug 2011 06:42:46 +0000 (14:42 +0800)]
Updated chroot's cleanup function

12 years agoRemove a useless function
Shuangquan Zhou [Thu, 11 Aug 2011 09:02:23 +0000 (17:02 +0800)]
Remove a useless function

12 years agoFixed the issue about live installation
Shuangquan Zhou [Thu, 11 Aug 2011 08:48:45 +0000 (16:48 +0800)]
Fixed the issue about live installation

12 years agoCorrect some typo mistakes
Shuangquan Zhou [Thu, 11 Aug 2011 06:23:16 +0000 (14:23 +0800)]
Correct some typo mistakes

12 years agoSupport micng convertor
Shuangquan Zhou [Thu, 11 Aug 2011 04:15:25 +0000 (12:15 +0800)]
Support micng convertor
Note: livecd/liveusb/loop/raw image convert to livecd/liveusb image

12 years agocode cleanup
JF Ding [Wed, 10 Aug 2011 08:44:16 +0000 (16:44 +0800)]
code cleanup

12 years agoMerge "Default image name set same with ksconf file"
JF Ding [Wed, 10 Aug 2011 08:52:29 +0000 (16:52 +0800)]
Merge "Default image name set same with ksconf file"

12 years agoMerge "Resolved empty modname issue in pluginmgr"
JF Ding [Wed, 10 Aug 2011 08:51:01 +0000 (16:51 +0800)]
Merge "Resolved empty modname issue in pluginmgr"

12 years agoMerge "correct help output in creator subcmd"
JF Ding [Wed, 10 Aug 2011 08:48:55 +0000 (16:48 +0800)]
Merge "correct help output in creator subcmd"

12 years agocode cleanup
JF Ding [Wed, 10 Aug 2011 08:01:16 +0000 (16:01 +0800)]
code cleanup

12 years agoDefault image name set same with ksconf file
Gui Chen [Wed, 10 Aug 2011 07:52:33 +0000 (15:52 +0800)]
Default image name set same with ksconf file

Signed-off-by: Gui Chen <gui.chen@intel.com>
12 years agoResolved empty modname issue in pluginmgr
Gui Chen [Wed, 10 Aug 2011 07:44:49 +0000 (15:44 +0800)]
Resolved empty modname issue in pluginmgr

Signed-off-by: Gui Chen <gui.chen@intel.com>
12 years agocorrect help output in creator subcmd
Gui Chen [Wed, 10 Aug 2011 07:42:34 +0000 (15:42 +0800)]
correct help output in creator subcmd

Signed-off-by: Gui Chen <gui.chen@intel.com>
12 years agoremove config key for release prefix name
JF Ding [Wed, 10 Aug 2011 06:15:02 +0000 (14:15 +0800)]
remove config key for release prefix name

like 'meego', need not any more

12 years agoUpdate Makefile for plugins installation
JF Ding [Wed, 10 Aug 2011 03:47:24 +0000 (11:47 +0800)]
Update Makefile for plugins installation

12 years agoInitial checkin of micng
Zhou Shuangquan [Wed, 10 Aug 2011 02:20:36 +0000 (10:20 +0800)]
Initial checkin of micng

Note: create fs/loop/raw/livecd/liveusb
      chroot fs/loop/raw/livecd/liveusb

Signed-off-by: Zhou Shuangquan <shuangquan.zhou@intel.com>
12 years agoadd .gitignore file to project
JF Ding [Fri, 29 Jul 2011 00:05:38 +0000 (17:05 -0700)]
add .gitignore file to project

12 years agoRework interfaces and move some common functions to misc.py
Zhou Shuangquan [Thu, 28 Jul 2011 06:10:46 +0000 (14:10 +0800)]
Rework interfaces and move some common functions to misc.py
Note: remove "pack/unpack"
      add "_mount_srcimg/_umount_srcimg" for supporting chroot
      add "_base_on" for supporting convertor

Signed-off-by: Zhou Shuangquan <shuangquan.zhou@intel.com>
12 years agoImplemented all plugin's interfaces
Zhou Shuangquan [Tue, 26 Jul 2011 10:03:24 +0000 (18:03 +0800)]
Implemented all plugin's interfaces

Signed-off-by: Zhou Shuangquan <shuangquan.zhou@intel.com>
13 years agoinitial import code into git
JF Ding [Wed, 20 Jul 2011 22:07:16 +0000 (06:07 +0800)]
initial import code into git