platform/upstream/mic.git
13 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>
13 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

13 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"

13 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>
13 years agofixing for lost import
JF Ding [Thu, 3 Nov 2011 08:49:09 +0000 (16:49 +0800)]
fixing for lost import

13 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

13 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

13 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>
13 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

13 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.

13 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

13 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

13 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

13 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

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

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

13 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"

13 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

13 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

13 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

13 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"

13 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>
13 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

13 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>
13 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

13 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

13 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

13 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

13 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

13 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.

13 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

13 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.

13 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

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

13 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"

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

13 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."

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

13 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"

13 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

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

13 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."

13 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.

13 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>
13 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>
13 years agoseveral minor fixings
JF Ding [Thu, 20 Oct 2011 11:33:01 +0000 (19:33 +0800)]
several minor fixings

13 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"

13 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>
13 years agomove above logfile initialization code
JF Ding [Thu, 20 Oct 2011 07:10:21 +0000 (15:10 +0800)]
move above logfile initialization code

13 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

13 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

13 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

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

13 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>
13 years agocleanup deprecated code
JF Ding [Wed, 19 Oct 2011 09:11:53 +0000 (17:11 +0800)]
cleanup deprecated code

13 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

13 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"

13 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

13 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>
13 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

13 years agoAdd '--cachedir' option for creator
Gui Chen [Wed, 19 Oct 2011 07:30:08 +0000 (15:30 +0800)]
Add '--cachedir' option for creator

Signed-off-by: Gui Chen <gui.chen@intel.com>
13 years agomod namespace typo
JF Ding [Wed, 19 Oct 2011 07:20:06 +0000 (15:20 +0800)]
mod namespace typo

13 years agomsger: print msger.warning and msger.error info to stdout if enable catch stderr
Zhang Qiang [Wed, 19 Oct 2011 03:42:53 +0000 (11:42 +0800)]
msger: print msger.warning and msger.error info to stdout if enable catch stderr

13 years agominor fixings
JF Ding [Tue, 18 Oct 2011 08:05:36 +0000 (16:05 +0800)]
minor fixings

13 years agoSerialize loopback device allocattion for multiple mic instances
Zhang Qiang [Tue, 18 Oct 2011 08:40:40 +0000 (16:40 +0800)]
Serialize loopback device allocattion for multiple mic instances

This patch is backported from two old mic2 patches:
9cc0159a73aa4363900005365e29b89dc03e8aab
845214931e14c0dce50b5bb70a0b82f63eda0b3b

13 years agoMerge "baseimge: unmount before clean up yum garbage"
Jian-feng Ding [Mon, 17 Oct 2011 09:32:23 +0000 (17:32 +0800)]
Merge "baseimge: unmount before clean up yum garbage"

13 years agobaseimge: unmount before clean up yum garbage
Zhang Qiang [Mon, 17 Oct 2011 10:00:45 +0000 (18:00 +0800)]
baseimge: unmount before clean up yum garbage

13 years agoneed not to write configs fot latest uxlaunch
Gui Chen [Mon, 17 Oct 2011 08:44:14 +0000 (16:44 +0800)]
need not to write configs fot latest uxlaunch

Signed-off-by: Gui Chen <gui.chen@intel.com>
13 years agocheck qemu version >= 0.13.0 for armv7
Gui Chen [Mon, 17 Oct 2011 08:40:43 +0000 (16:40 +0800)]
check qemu version >= 0.13.0 for armv7

Signed-off-by: Gui Chen <gui.chen@intel.com>
13 years agoupdate README.rst
Gui Chen [Mon, 17 Oct 2011 08:35:01 +0000 (16:35 +0800)]
update README.rst

Signed-off-by: Gui Chen <gui.chen@intel.com>
13 years agoMerge "skip unavailable source package"
Jian-feng Ding [Mon, 17 Oct 2011 08:18:19 +0000 (16:18 +0800)]
Merge "skip unavailable source package"

13 years agominor fixings for style
JF Ding [Mon, 17 Oct 2011 08:01:04 +0000 (16:01 +0800)]
minor fixings for style

13 years agoskip unavailable source package
Gui Chen [Mon, 17 Oct 2011 07:14:37 +0000 (15:14 +0800)]
skip unavailable source package

Signed-off-by: Gui Chen <gui.chen@intel.com>
13 years agozypp: fix local repo support issue
Zhang Qiang [Mon, 17 Oct 2011 05:46:34 +0000 (13:46 +0800)]
zypp: fix local repo support issue

Don't use hard code local repo structure, get local repo structure from
repo metadata.

13 years agozypp: sort PoolQuery result by version
Zhang Qiang [Mon, 17 Oct 2011 05:45:31 +0000 (13:45 +0800)]
zypp: sort PoolQuery result by version

if multi version packages exist in repo, always select the highest
version to install.

13 years agozypp:support the dotted package name in ks
Zhang Qiang [Mon, 17 Oct 2011 05:44:45 +0000 (13:44 +0800)]
zypp:support the dotted package name in ks

such as:
    com.substanceofcode.kasvopus
    com.substanceofcode.kasvopus.armv7hl

arch type would also be checked.

13 years agozypp: get correct package arch
Zhang Qiang [Mon, 17 Oct 2011 05:44:09 +0000 (13:44 +0800)]
zypp: get correct package arch

13 years agoGracefully handle the case only delta rpm is available
Zhang Qiang [Mon, 17 Oct 2011 05:43:13 +0000 (13:43 +0800)]
Gracefully handle the case only delta rpm is available

Note: yum doesn't support delta rpm, if only .drpm is available in,
repo mic2 will fail with an uncatched exception, this commit
will catch such exception and tell the user what happened, fix
bug #12993

13 years agoyum:fixed the issue about yum's exception,BMC#4944
Zhang Qiang [Mon, 17 Oct 2011 05:42:54 +0000 (13:42 +0800)]
yum:fixed the issue about yum's exception,BMC#4944

13 years agomsger: add stderr logger interface
Zhang Qiang [Mon, 17 Oct 2011 05:42:18 +0000 (13:42 +0800)]
msger: add stderr logger interface

Add enable_logstderr and disable_logstderr to log information printed to
stderr.

Catch backend package install error.

13 years agominor changes for license list format
JF Ding [Thu, 13 Oct 2011 04:11:06 +0000 (12:11 +0800)]
minor changes for license list format

13 years agoMerge "Add --record-pkgs option to output more package info"
Jian-feng Ding [Thu, 13 Oct 2011 04:04:43 +0000 (12:04 +0800)]
Merge "Add --record-pkgs option to output more package info"

13 years agoAdd --record-pkgs option to output more package info
Zhang Qiang [Thu, 13 Oct 2011 03:20:30 +0000 (11:20 +0800)]
Add --record-pkgs option to output more package info

Record the installed packages info, valid values are: name, content,
license. --release options would add 'name' to record_pkgs.

User can specify multi-values using comma, such as follow example:
--record-pkgs=name,license

13 years agoremove /var/lib/yum, /var/cache/yum in target image
JF Ding [Wed, 12 Oct 2011 09:11:10 +0000 (17:11 +0800)]
remove /var/lib/yum, /var/cache/yum in target image

no used for current supported images which using zypp
merge back from mic2

13 years agoproblem in create_release() for MANIFEST writing
JF Ding [Wed, 12 Oct 2011 09:05:00 +0000 (17:05 +0800)]
problem in create_release() for MANIFEST writing

13 years agoKeep /etc/mtab intact if it is a symlink
JF Ding [Wed, 12 Oct 2011 04:14:50 +0000 (12:14 +0800)]
Keep /etc/mtab intact if it is a symlink

merge back bugfix from mic2

13 years agosupport taring all loop imgs to a single file
JF Ding [Tue, 11 Oct 2011 07:30:06 +0000 (15:30 +0800)]
support taring all loop imgs to a single file

--taring-to option to specify it

13 years agoMerge "yum: unify the install output info with zypp"
Jian-feng Ding [Mon, 10 Oct 2011 11:18:50 +0000 (19:18 +0800)]
Merge "yum: unify the install output info with zypp"

13 years agoyum: unify the install output info with zypp
Zhang Qiang [Mon, 10 Oct 2011 10:31:06 +0000 (18:31 +0800)]
yum: unify the install output info with zypp

13 years agomake loop image type support multiple partitions
JF Ding [Mon, 10 Oct 2011 09:20:45 +0000 (17:20 +0800)]
make loop image type support multiple partitions

which can be specified in kickstart, with the following feilds:
 mountpoint, fstype, size, label

Each particition will be generate as one separate image with the file
name as the one --label specified, else using kickstart name or
partition name.

13 years agoremove unused options for loop type
JF Ding [Mon, 10 Oct 2011 08:23:40 +0000 (16:23 +0800)]
remove unused options for loop type

13 years agounify the license header of all files
JF Ding [Mon, 10 Oct 2011 02:55:13 +0000 (10:55 +0800)]
unify the license header of all files

13 years agoyum: fix a typo.
Zhang Qiang [Sun, 9 Oct 2011 09:20:10 +0000 (17:20 +0800)]
yum: fix a typo.

13 years agoMerge "zypp: recording correct package info for local rpm"
Jian-feng Ding [Sat, 8 Oct 2011 11:01:35 +0000 (19:01 +0800)]
Merge "zypp: recording correct package info for local rpm"

13 years agoupdate README for better blockquote
JF Ding [Sat, 8 Oct 2011 10:01:19 +0000 (18:01 +0800)]
update README for better blockquote

and cleanup all trailing spaces

13 years agozypp: recording correct package info for local rpm
Zhang Qiang [Sat, 8 Oct 2011 06:33:43 +0000 (14:33 +0800)]
zypp: recording correct package info for local rpm

13 years agomake clean up mtab selectable in umount()
JF Ding [Sat, 8 Oct 2011 05:21:11 +0000 (13:21 +0800)]
make clean up mtab selectable in umount()

13 years agozypp: Catch more error msg from rpm transaction results
Zhang Qiang [Sat, 8 Oct 2011 05:28:42 +0000 (13:28 +0800)]
zypp: Catch more error msg from rpm transaction results

13 years agoKickstartConfig: add more directory checking
Zhang Qiang [Sat, 8 Oct 2011 05:27:17 +0000 (13:27 +0800)]
KickstartConfig: add more directory checking

13 years agoMerge "zypp: Catch more error msg from rpm transaction results"
Huaxu Wan [Sat, 8 Oct 2011 05:19:20 +0000 (13:19 +0800)]
Merge "zypp: Catch more error msg from rpm transaction results"