platform/upstream/mic.git
12 years agoMerge "conf.py: deal siteconf when set in init"
Qiang Zhang [Fri, 16 Dec 2011 09:32:34 +0000 (17:32 +0800)]
Merge "conf.py: deal siteconf when set in init"

12 years agoMerge "Add 47 system test case."
Zhang Qiang [Fri, 16 Dec 2011 09:28:23 +0000 (17:28 +0800)]
Merge "Add 47 system test case."

12 years agoAdd 47 system test case.
Zhang Qiang [Fri, 16 Dec 2011 09:38:31 +0000 (17:38 +0800)]
Add 47 system test case.

These 47 test cases can be used to test 'mic cr'.
'mic ch' and 'mic cv' test case have not been added.

12 years agoconf.py: deal siteconf when set in init
Gui Chen [Fri, 16 Dec 2011 07:35:23 +0000 (15:35 +0800)]
conf.py: deal siteconf when set in init

Signed-off-by: Gui Chen <gui.chen@intel.com>
12 years agoMerge pull request #4 from saukko/master
JF Ding [Fri, 16 Dec 2011 07:31:29 +0000 (23:31 -0800)]
Merge pull request #4 from saukko/master

Some updates for naming

12 years agoMerge branch 'master' of https://github.com/jfding/mic
Marko Saukko [Fri, 16 Dec 2011 07:24:46 +0000 (09:24 +0200)]
Merge branch 'master' of https://github.com/jfding/mic

Conflicts:
distfiles/mic.conf

12 years agoMerge pull request #6 from xiaoqiang0/master
JF Ding [Fri, 16 Dec 2011 07:18:26 +0000 (23:18 -0800)]
Merge pull request #6 from xiaoqiang0/master

Added priority/cost repo option support

12 years agoAdded priority and cost option for repos
Zhang Qiang [Fri, 16 Dec 2011 06:09:58 +0000 (14:09 +0800)]
Added priority and cost option for repos

backport from mic2:
    https://meego.gitorious.org/meego-developer-tools/image-creator/commit/7def0263d132d25f026a9317b53618ba1a48e943

12 years agoMerge pull request #3 from bartosh/master
JF Ding [Fri, 16 Dec 2011 03:37:43 +0000 (19:37 -0800)]
Merge pull request #3 from bartosh/master

Implemented repository option --ssl_verify

12 years agocleanup all trailing spaces in code
JF Ding [Fri, 16 Dec 2011 02:58:09 +0000 (10:58 +0800)]
cleanup all trailing spaces in code

12 years agoDon't create new name value as we have already done one during the config and .ks...
Marko Saukko [Thu, 15 Dec 2011 11:53:55 +0000 (13:53 +0200)]
Don't create new name value as we have already done one during the config and .ks file parsing.

Signed-off-by: Marko Saukko <marko.saukko@cybercom.com>
12 years agoAdded support for name_prefix.
Marko Saukko [Thu, 15 Dec 2011 11:11:47 +0000 (13:11 +0200)]
Added support for name_prefix.

Signed-off-by: Marko Saukko <marko.saukko@cybercom.com>
12 years agoRemove hardcoded distro name.
Marko Saukko [Thu, 15 Dec 2011 10:38:04 +0000 (12:38 +0200)]
Remove hardcoded distro name.

Signed-off-by: Marko Saukko <marko.saukko@cybercom.com>
12 years agoMerge pull request #2 from saukko/master
JF Ding [Thu, 15 Dec 2011 10:09:30 +0000 (02:09 -0800)]
Merge pull request #2 from saukko/master

some minor typos in error messages.

12 years agoReintroduced the compress-disk-image option from mic2.
Marko Saukko [Thu, 15 Dec 2011 08:58:31 +0000 (10:58 +0200)]
Reintroduced the compress-disk-image option from mic2.

Signed-off-by: Marko Saukko <marko.saukko@cybercom.com>
12 years agoAdded mic/__version__.py, build/, dist/ and mic.egg-info/ to ignore list.
Marko Saukko [Thu, 15 Dec 2011 07:49:58 +0000 (09:49 +0200)]
Added mic/__version__.py, build/, dist/ and mic.egg-info/ to ignore list.
Removed micng/__version__.py from .gitignore.

12 years agoImplemented repository option --ssl_verify
Ed Bartosh [Wed, 14 Dec 2011 15:01:19 +0000 (17:01 +0200)]
Implemented repository option --ssl_verify

12 years agoFix typos in messages.
Marko Saukko [Wed, 14 Dec 2011 11:09:15 +0000 (13:09 +0200)]
Fix typos in messages.

Signed-off-by: Marko Saukko <marko.saukko@cybercom.com>
12 years agoMerge pull request #1 from xiaoqiang0/master
JF Ding [Wed, 14 Dec 2011 05:58:40 +0000 (21:58 -0800)]
Merge pull request #1 from xiaoqiang0/master

Fix two bugs.

12 years agoShow user all the availabe archs if choice more than one.
Zhang Qiang [Wed, 14 Dec 2011 02:46:45 +0000 (10:46 +0800)]
Show user all the availabe archs if choice more than one.

12 years agoconf: fix string format issue.
Zhang Qiang [Wed, 14 Dec 2011 02:37:39 +0000 (10:37 +0800)]
conf: fix string format issue.

12 years agomore concise plugin related expressions
JF Ding [Tue, 13 Dec 2011 07:19:43 +0000 (23:19 -0800)]
more concise plugin related expressions

12 years agoMerge remote branch 'origin/master'
JF Ding [Tue, 13 Dec 2011 03:08:19 +0000 (19:08 -0800)]
Merge remote branch 'origin/master'

12 years agoMerge "msger.py: avoid the trick caused by stream default parameter"
Jian-feng ding [Tue, 13 Dec 2011 02:44:04 +0000 (10:44 +0800)]
Merge "msger.py: avoid the trick caused by stream default parameter"

12 years agomake the configmgr better
JF Ding [Tue, 13 Dec 2011 00:55:43 +0000 (16:55 -0800)]
make the configmgr better

but still need more refination later

12 years agomore precise place for catched errmsg
JF Ding [Fri, 9 Dec 2011 23:01:27 +0000 (07:01 +0800)]
more precise place for catched errmsg

output the errmsg before the next line

12 years agomsger.py: avoid the trick caused by stream default parameter
Gui Chen [Fri, 9 Dec 2011 07:02:03 +0000 (15:02 +0800)]
msger.py: avoid the trick caused by stream default parameter

Signed-off-by: Gui Chen <gui.chen@intel.com>
12 years agodisable ca check for https in 3rd/pykickstart/urlgrabber
JF Ding [Thu, 8 Dec 2011 21:01:12 +0000 (05:01 +0800)]
disable ca check for https in 3rd/pykickstart/urlgrabber

12 years agoFix typo.
Zhang Qiang [Thu, 1 Dec 2011 06:48:51 +0000 (14:48 +0800)]
Fix typo.

12 years agostyle and typos
JF Ding [Thu, 17 Nov 2011 10:59:13 +0000 (18:59 +0800)]
style and typos

12 years agoMerge "graceful hint when dir not meego chroot"
Jian-feng ding [Thu, 17 Nov 2011 11:01:59 +0000 (19:01 +0800)]
Merge "graceful hint when dir not meego chroot"

12 years agoskip md5 sum generation for directory
Gui Chen [Thu, 17 Nov 2011 11:04:09 +0000 (19:04 +0800)]
skip md5 sum generation for directory

Signed-off-by: Gui Chen <gui.chen@intel.com>
12 years agograceful hint when dir not meego chroot
Gui Chen [Thu, 17 Nov 2011 11:02:17 +0000 (19:02 +0800)]
graceful hint when dir not meego chroot

Signed-off-by: Gui Chen <gui.chen@intel.com>
12 years agosupport btrfs and ext4 for creator, chroot, convert
Gui Chen [Thu, 17 Nov 2011 09:13:04 +0000 (17:13 +0800)]
support btrfs and ext4 for creator, chroot, convert

it's not backported from mic2

Signed-off-by: Gui Chen <gui.chen@intel.com>
12 years agobaseimager: set RPM DB path
Zhang Qiang [Thu, 17 Nov 2011 07:41:35 +0000 (15:41 +0800)]
baseimager: set RPM DB path

This commit set dbpath for RPM, which is necessary for some distro, such
as rpm in ubuntu have not the correct _dbpatch configure.

12 years agofix image size which cause chroot issue
Gui Chen [Tue, 15 Nov 2011 08:21:57 +0000 (16:21 +0800)]
fix image size which cause chroot issue

Signed-off-by: Gui Chen <gui.chen@intel.com>
12 years agomsger: make dir if log file dir not exist.
Zhang Qiang [Fri, 11 Nov 2011 05:43:44 +0000 (13:43 +0800)]
msger: make dir if log file dir not exist.

12 years agotypo: fix usage message typo error
Zhang Qiang [Thu, 10 Nov 2011 08:52:11 +0000 (16:52 +0800)]
typo: fix usage message typo error

12 years agoupdate distfiles and Makefile
JF Ding [Fri, 4 Nov 2011 13:57:59 +0000 (21:57 +0800)]
update distfiles and Makefile

12 years agoinstall manpage in Makefile and update dist files
Gui Chen [Fri, 4 Nov 2011 07:18:48 +0000 (15:18 +0800)]
install manpage in Makefile and update dist files

Signed-off-by: Gui Chen <gui.chen@intel.com>
12 years agoSome fixes to be compatible with python 2.5
Gui Chen [Fri, 4 Nov 2011 03:22:37 +0000 (11:22 +0800)]
Some fixes to be compatible with python 2.5

Signed-off-by: Gui Chen <gui.chen@intel.com>
12 years agomake tools/mic more flexible for python path
JF Ding [Thu, 3 Nov 2011 12:21:04 +0000 (20:21 +0800)]
make tools/mic more flexible for python path

to make it live with virtualenv

12 years agoMerge "setup.py: replace lsb_release to platform and replace list-all-py to glob"
Jian-feng ding [Thu, 3 Nov 2011 11:52:55 +0000 (19:52 +0800)]
Merge "setup.py: replace lsb_release to platform and replace list-all-py to glob"

12 years agosetup.py: replace lsb_release to platform and replace list-all-py to glob
Gui Chen [Thu, 3 Nov 2011 10:23:36 +0000 (18:23 +0800)]
setup.py: replace lsb_release to platform and replace list-all-py to glob

platform is more effective to detect the distro type, and glob is easier than list all python file

Signed-off-by: Gui Chen <gui.chen@intel.com>
12 years agofixing for lost import
JF Ding [Thu, 3 Nov 2011 08:49:09 +0000 (16:49 +0800)]
fixing for lost import

12 years agochange default output dir name to ./mic-output
JF Ding [Thu, 3 Nov 2011 08:37:03 +0000 (16:37 +0800)]
change default output dir name to ./mic-output

12 years agocode reformat
JF Ding [Thu, 3 Nov 2011 07:25:17 +0000 (15:25 +0800)]
code reformat

declare default cachedir as subdir of tmpdir explicitly

12 years agoput TextProcess and myurlgrab from fs_related to rpmmisc
Gui Chen [Wed, 2 Nov 2011 08:53:41 +0000 (16:53 +0800)]
put TextProcess and myurlgrab from fs_related to rpmmisc

TextProcess and myurlgrab is related with backend, irrelated with fs_related

Signed-off-by: Gui Chen <gui.chen@intel.com>
12 years agofs: create dest dir before copying image
Zhang Qiang [Wed, 2 Nov 2011 07:39:23 +0000 (15:39 +0800)]
fs: create dest dir before copying image

12 years agoarch: check arch type from repository data.
Zhang Qiang [Tue, 1 Nov 2011 10:03:19 +0000 (18:03 +0800)]
arch: check arch type from repository data.

12 years agountrack mic/__version__.py 0.1
JF Ding [Fri, 28 Oct 2011 06:07:31 +0000 (14:07 +0800)]
untrack mic/__version__.py

which should be generated in the installation, with the value in
VERSION

12 years agoremove saving logfile for --release by default
JF Ding [Fri, 28 Oct 2011 05:35:06 +0000 (13:35 +0800)]
remove saving logfile for --release by default

will not implement it in this release, postponed

12 years agoloop: skip swap part when init self._instloops
JF Ding [Fri, 28 Oct 2011 05:28:54 +0000 (13:28 +0800)]
loop: skip swap part when init self._instloops

12 years agobump up version to 0.1
JF Ding [Thu, 27 Oct 2011 09:27:01 +0000 (17:27 +0800)]
bump up version to 0.1

12 years agoMakefile: update manpage automatically
JF Ding [Thu, 27 Oct 2011 09:16:35 +0000 (17:16 +0800)]
Makefile: update manpage automatically

12 years agoMerge remote branch 'origin/master'
JF Ding [Thu, 27 Oct 2011 09:04:14 +0000 (17:04 +0800)]
Merge remote branch 'origin/master'

12 years agoMerge "BMC#18552: selinux checking for btrfs and ARM"
Jian-feng Ding [Thu, 27 Oct 2011 09:06:17 +0000 (17:06 +0800)]
Merge "BMC#18552: selinux checking for btrfs and ARM"

12 years agobetter handling for existing files checks
JF Ding [Thu, 27 Oct 2011 09:02:41 +0000 (17:02 +0800)]
better handling for existing files checks

12 years agosave logfile by default if --release specified
JF Ding [Thu, 27 Oct 2011 08:23:03 +0000 (16:23 +0800)]
save logfile by default if --release specified

12 years agoupdate README for manpage convertion
JF Ding [Thu, 27 Oct 2011 07:26:08 +0000 (15:26 +0800)]
update README for manpage convertion

using `rst2man` from docutils

12 years agoMerge "unify RPMInstallCallback class for yum and zypp"
Jian-feng Ding [Thu, 27 Oct 2011 07:43:07 +0000 (15:43 +0800)]
Merge "unify RPMInstallCallback class for yum and zypp"

12 years agounify RPMInstallCallback class for yum and zypp
Gui Chen [Thu, 27 Oct 2011 06:49:34 +0000 (14:49 +0800)]
unify RPMInstallCallback class for yum and zypp

Signed-off-by: Gui Chen <gui.chen@intel.com>
12 years agoupdate README.rst for better wiki convertion support
JF Ding [Thu, 27 Oct 2011 06:20:44 +0000 (14:20 +0800)]
update README.rst for better wiki convertion support

12 years agoFix convert livecd/liveusb cannot work
Gui Chen [Thu, 27 Oct 2011 06:08:12 +0000 (14:08 +0800)]
Fix convert livecd/liveusb cannot work

Signed-off-by: Gui Chen <gui.chen@intel.com>
12 years agoBMC#18552: selinux checking for btrfs and ARM
Zhang Qiang [Thu, 27 Oct 2011 06:16:48 +0000 (14:16 +0800)]
BMC#18552: selinux checking for btrfs and ARM

backport mic2 commit:
    30d7b89bc357a199a99d216c7e82059f5a30bf1f

12 years agoClean up checking exist image code
Zhang Qiang [Wed, 26 Oct 2011 14:20:58 +0000 (22:20 +0800)]
Clean up checking exist image code

12 years agoGet armv7 arch list from archPolicy list
Zhang Qiang [Wed, 26 Oct 2011 05:59:58 +0000 (13:59 +0800)]
Get armv7 arch list from archPolicy list

12 years agobackport:Improved timezone installation error message.
Zhang Qiang [Wed, 26 Oct 2011 03:21:59 +0000 (11:21 +0800)]
backport:Improved timezone installation error message.

backport from mic2 commit:
8507e7919abc1271ca77375deeec2071989fa13c

12 years agobackport:Catch httplib.HTTPException for urllib2.urlopen
Zhang Qiang [Wed, 26 Oct 2011 03:15:11 +0000 (11:15 +0800)]
backport:Catch httplib.HTTPException for urllib2.urlopen

Catch httplib.HTTPException for urllib2.urlopen
Note: fix bug #18144

backport from:
d1b0ca1c15c68b73c5af1d3a83c122952189f799

12 years agoGive prompt info if target image file exist.
Zhang Qiang [Wed, 26 Oct 2011 03:09:47 +0000 (11:09 +0800)]
Give prompt info if target image file exist.

12 years agokickstart: Checking dir before accessing it
Zhang Qiang [Mon, 24 Oct 2011 09:05:58 +0000 (17:05 +0800)]
kickstart: Checking dir before accessing it

12 years agozypp: Import local rpm data to RepoManager solv DB.
Zhang Qiang [Mon, 24 Oct 2011 08:59:55 +0000 (16:59 +0800)]
zypp: Import local rpm data to RepoManager solv DB.

Convert local rpm to solv file, then import it to RepoManager solv DB to
resolve the dependency.

12 years agofixings of ARCH replacing in save_ksconf_file
JF Ding [Fri, 21 Oct 2011 06:58:22 +0000 (14:58 +0800)]
fixings of ARCH replacing in save_ksconf_file

12 years agoMerge remote branch 'origin/master'
JF Ding [Fri, 21 Oct 2011 05:32:26 +0000 (13:32 +0800)]
Merge remote branch 'origin/master'

12 years agoMerge "Fix release can't find ksconf issue"
Jian-feng Ding [Fri, 21 Oct 2011 05:47:46 +0000 (13:47 +0800)]
Merge "Fix release can't find ksconf issue"

12 years agorewrite the release_out code
JF Ding [Fri, 21 Oct 2011 05:23:15 +0000 (13:23 +0800)]
rewrite the release_out code

12 years agoMerge "doc: fix spelling error."
Jian-feng Ding [Fri, 21 Oct 2011 03:22:26 +0000 (11:22 +0800)]
Merge "doc: fix spelling error."

12 years agodoc: fix spelling error.
Zhang Qiang [Fri, 21 Oct 2011 03:43:37 +0000 (11:43 +0800)]
doc: fix spelling error.

12 years agoMerge "ignore swap partition in ks file"
Jian-feng Ding [Fri, 21 Oct 2011 03:22:06 +0000 (11:22 +0800)]
Merge "ignore swap partition in ks file"

12 years agoset default arch to Nono to use host arch
JF Ding [Fri, 21 Oct 2011 02:51:46 +0000 (10:51 +0800)]
set default arch to Nono to use host arch

12 years agoarch clean up
JF Ding [Fri, 21 Oct 2011 02:41:21 +0000 (10:41 +0800)]
arch clean up

12 years agoMerge "Re-reorganize the code of arch setting."
Jian-feng Ding [Fri, 21 Oct 2011 02:43:54 +0000 (10:43 +0800)]
Merge "Re-reorganize the code of arch setting."

12 years agoRe-reorganize the code of arch setting.
Zhang Qiang [Fri, 21 Oct 2011 03:00:51 +0000 (11:00 +0800)]
Re-reorganize the code of arch setting.

Add arch policies dicts, which contains mic supported arch and arch
compatible table.

Only check arch setting at the beginning of mic launch, and remove
all the arch checking in baseimage and backend level.

12 years agoFix release can't find ksconf issue
Gui Chen [Fri, 21 Oct 2011 02:25:39 +0000 (10:25 +0800)]
Fix release can't find ksconf issue

Signed-off-by: Gui Chen <gui.chen@intel.com>
12 years agoignore swap partition in ks file
Gui Chen [Fri, 21 Oct 2011 02:25:22 +0000 (10:25 +0800)]
ignore swap partition in ks file

Signed-off-by: Gui Chen <gui.chen@intel.com>
12 years agoseveral minor fixings
JF Ding [Thu, 20 Oct 2011 11:33:01 +0000 (19:33 +0800)]
several minor fixings

12 years agoMerge "update release help message"
Jian-feng Ding [Thu, 20 Oct 2011 09:17:16 +0000 (17:17 +0800)]
Merge "update release help message"

12 years agoupdate release help message
Gui Chen [Thu, 20 Oct 2011 08:55:29 +0000 (16:55 +0800)]
update release help message

Signed-off-by: Gui Chen <gui.chen@intel.com>
12 years agomove above logfile initialization code
JF Ding [Thu, 20 Oct 2011 07:10:21 +0000 (15:10 +0800)]
move above logfile initialization code

12 years agoAlways get packages content and license info into baseimage layer
Zhang Qiang [Thu, 20 Oct 2011 07:07:01 +0000 (15:07 +0800)]
Always get packages content and license info into baseimage layer

12 years agodoc: correct the spelling error for option -A
Zhang Qiang [Thu, 20 Oct 2011 02:00:21 +0000 (10:00 +0800)]
doc: correct the spelling error for option -A

12 years agounify the variable name in plugins to avoid typos
JF Ding [Wed, 19 Oct 2011 09:46:41 +0000 (17:46 +0800)]
unify the variable name in plugins to avoid typos

createopts -> creatoropts

12 years agofixed typos
JF Ding [Wed, 19 Oct 2011 09:44:32 +0000 (17:44 +0800)]
fixed typos

12 years agoRefine the outdir for release
Gui Chen [Wed, 19 Oct 2011 09:55:01 +0000 (17:55 +0800)]
Refine the outdir for release

Signed-off-by: Gui Chen <gui.chen@intel.com>
12 years agocleanup deprecated code
JF Ding [Wed, 19 Oct 2011 09:11:53 +0000 (17:11 +0800)]
cleanup deprecated code

12 years agoraise exp if cannot detect imgtype for chroot/convert
JF Ding [Wed, 19 Oct 2011 09:09:54 +0000 (17:09 +0800)]
raise exp if cannot detect imgtype for chroot/convert

12 years agoMerge "Check if ks file exists"
Jian-feng Ding [Wed, 19 Oct 2011 09:10:35 +0000 (17:10 +0800)]
Merge "Check if ks file exists"

12 years agomove create_release code to BaseImage class
JF Ding [Wed, 19 Oct 2011 08:51:08 +0000 (16:51 +0800)]
move create_release code to BaseImage class

12 years agoCheck if ks file exists
Gui Chen [Wed, 19 Oct 2011 08:31:37 +0000 (16:31 +0800)]
Check if ks file exists

Signed-off-by: Gui Chen <gui.chen@intel.com>
12 years agosafe exit for FileLock for cleanup
JF Ding [Wed, 19 Oct 2011 07:40:21 +0000 (15:40 +0800)]
safe exit for FileLock for cleanup