JF Ding [Wed, 11 Jul 2012 06:48:42 +0000 (14:48 +0800)]
cleanup trailing spaces and extra-long lines
Gui Chen [Wed, 11 Jul 2012 02:43:00 +0000 (10:43 +0800)]
add choice for msger and ask user to choose root partition
fix mic ch raw image failure 'cause of the order of partition
Signed-off-by: Gui Chen <gui.chen@intel.com>
Gui Chen [Tue, 10 Jul 2012 11:33:45 +0000 (19:33 +0800)]
hide loopdev presentation to avoid popup message in Ubuntu 12.04
Signed-off-by: Gui Chen <gui.chen@intel.com>
Gui Chen [Tue, 10 Jul 2012 10:44:55 +0000 (18:44 +0800)]
put mic version to build log
Signed-off-by: Gui Chen <gui.chen@intel.com>
Gui Chen [Tue, 10 Jul 2012 10:35:44 +0000 (18:35 +0800)]
save log file default when --release specified
Signed-off-by: Gui Chen <gui.chen@intel.com>
Gui Chen [Tue, 10 Jul 2012 10:34:19 +0000 (18:34 +0800)]
find path of 'env' for chroot automatically
Signed-off-by: Gui Chen <gui.chen@intel.com>
Gui Chen [Mon, 9 Jul 2012 03:28:06 +0000 (11:28 +0800)]
use 'gzip' and 'bzip2' to pack image instead
Signed-off-by: Gui Chen <gui.chen@intel.com>
Gui Chen [Mon, 9 Jul 2012 02:48:11 +0000 (10:48 +0800)]
Revert "fix mic ch raw failed issue"
This reverts commit
ceb70ba97a3a3c9ebabb39a2750d666645c89b65.
JF Ding [Sun, 24 Jun 2012 14:43:15 +0000 (07:43 -0700)]
encode unicode string from system w/ widechar locale
else in this like system, msger will abort with
string encoding/decoding errors.
Gui Chen [Wed, 20 Jun 2012 04:05:20 +0000 (12:05 +0800)]
bump up version to 0.12
Signed-off-by: Gui Chen <gui.chen@intel.com>
Gui Chen [Tue, 19 Jun 2012 04:10:28 +0000 (12:10 +0800)]
use 'latest' and 'ia32' as default when @BUILD_ID@ and @ARCH@ not specified
Signed-off-by: Gui Chen <gui.chen@intel.com>
Gui Chen [Fri, 15 Jun 2012 10:33:18 +0000 (18:33 +0800)]
enhance proxy support in attachment retrieve
fix the issue that proxy in '--repo' is not available in attachment retrieving
Signed-off-by: Gui Chen <gui.chen@intel.com>
JF Ding [Thu, 14 Jun 2012 10:51:51 +0000 (18:51 +0800)]
new --shrink opt for loop image to control img shrinking
w/ --pack-to, the loop images will be shrinked automatically,
if w/o it, now --shrink can be used to do so.
Gui Chen [Fri, 15 Jun 2012 02:41:27 +0000 (10:41 +0800)]
clean the duplicate code with get_url in zypp backend
Signed-off-by: Gui Chen <gui.chen@intel.com>
Gui Chen [Fri, 15 Jun 2012 01:57:47 +0000 (09:57 +0800)]
avoid invalid literal in genloopid
Signed-off-by: Gui Chen <gui.chen@intel.com>
Gui Chen [Tue, 12 Jun 2012 10:32:32 +0000 (18:32 +0800)]
fix convert failed issue
Traceback: "AttributeError: 'LiveUSBImageCreator' object has no attribute 'pack_to'"
Signed-off-by: Gui Chen <gui.chen@intel.com>
Gui Chen [Tue, 12 Jun 2012 10:07:46 +0000 (18:07 +0800)]
fix src pkgs download failed issue
Traceback: "TypeError: invalid arguments to setopt"
Signed-off-by: Gui Chen <gui.chen@intel.com>
Gui Chen [Mon, 11 Jun 2012 11:01:45 +0000 (19:01 +0800)]
move selinux_check func to misc module
Signed-off-by: Gui Chen <gui.chen@intel.com>
Gui Chen [Mon, 11 Jun 2012 06:15:16 +0000 (14:15 +0800)]
fix compres image in raw image
Signed-off-by: Gui Chen <gui.chen@intel.com>
Gui Chen [Fri, 8 Jun 2012 08:59:11 +0000 (16:59 +0800)]
remove prefix for make install and typo fix
setup.py will auto-detect prefix, 'make install' should not disturb it
Signed-off-by: Gui Chen <gui.chen@intel.com>
Gui Chen [Thu, 7 Jun 2012 09:43:23 +0000 (17:43 +0800)]
bump up version to 0.11
disable bootstrap in this release
Signed-off-by: Gui Chen <gui.chen@intel.com>
Gui Chen [Thu, 7 Jun 2012 08:26:35 +0000 (16:26 +0800)]
resolve the depends of python-urlgrabber
Signed-off-by: Gui Chen <gui.chen@intel.com>
Gui Chen [Thu, 7 Jun 2012 06:01:51 +0000 (14:01 +0800)]
fix mic ch raw failed issue
Signed-off-by: Gui Chen <gui.chen@intel.com>
Gui Chen [Wed, 6 Jun 2012 10:25:36 +0000 (18:25 +0800)]
raise when multi parts detected in ks file
it's not supported now for multi partitions in live image
Signed-off-by: Gui Chen <gui.chen@intel.com>
Gui Chen [Wed, 6 Jun 2012 03:41:11 +0000 (11:41 +0800)]
centralized interface to check existing images
new api: ImagerPlugin::check_image_exists
this change will fix a bug for --pack-to handling
Signed-off-by: Gui Chen <gui.chen@intel.com>
Gui Chen [Tue, 5 Jun 2012 07:56:30 +0000 (15:56 +0800)]
resolve right url for attachment package
Signed-off-by: Gui Chen <gui.chen@intel.com>
Gui Chen [Sun, 3 Jun 2012 08:07:16 +0000 (16:07 +0800)]
refine repostr structure to fix comma issue in baseurl
Signed-off-by: Gui Chen <gui.chen@intel.com>
Gui Chen [Sat, 2 Jun 2012 04:16:12 +0000 (12:16 +0800)]
some fixes to enhance authentication url
the fixed issues includes:
1. "https://url" can't get https proxy properly
2. "http://host/a//bc" (inculde "//" in abc) is not supported in some server
3. "http://a+bc" (include "+" in abc) is quoted so that failed to download
Signed-off-by: Gui Chen <gui.chen@intel.com>
Gui Chen [Wed, 30 May 2012 06:07:06 +0000 (14:07 +0800)]
output all install log even stdout not a tty
Signed-off-by: Gui Chen <gui.chen@intel.com>
Gui Chen [Mon, 28 May 2012 05:54:50 +0000 (13:54 +0800)]
reset LD_PRELOAD for chroot env
libs in LD_PRELOAD can't be preloaded in chroot, so reset it to clean such errors
Signed-off-by: Gui Chen <gui.chen@intel.com>
Gui Chen [Mon, 28 May 2012 02:24:18 +0000 (10:24 +0800)]
pack images together and support compressed file format
--pack-to is enabled for fs, loop, raw, and includes tar, tar.gz, tar.bz2, zip
--compress-image is enabled for loop, raw, and includes gzip, bzip2
--pack-to is compatible with --taring-to
--compress-image is compatible with --compress-disk-image
Signed-off-by: Gui Chen <gui.chen@intel.com>
Gui Chen [Fri, 25 May 2012 08:47:49 +0000 (16:47 +0800)]
avoid failure caused by symlink resolv.conf
Signed-off-by: Gui Chen <gui.chen@intel.com>
Gui Chen [Wed, 23 May 2012 11:48:04 +0000 (19:48 +0800)]
fix zypp missing password when using username:passwd pattern url
if repo url is like 'http://username:passwd@host/repo/', zypp would handle incorrectly,
and this commit fix the issue
Signed-off-by: Gui Chen <gui.chen@intel.com>
Gui Chen [Thu, 17 May 2012 08:36:07 +0000 (16:36 +0800)]
use abspath for cachedir and outdir path
Signed-off-by: Gui Chen <gui.chen@intel.com>
Gui Chen [Wed, 16 May 2012 13:42:23 +0000 (21:42 +0800)]
add new subcmd 'auto' to handle magic line in ks
Signed-off-by: Gui Chen <gui.chen@intel.com>
Gui Chen [Tue, 15 May 2012 07:32:52 +0000 (15:32 +0800)]
bump up version to 0.10
Signed-off-by: Gui Chen <gui.chen@intel.com>
Gui Chen [Mon, 14 May 2012 13:25:10 +0000 (21:25 +0800)]
extract rpm listed in attachment which not found in rootfs
Signed-off-by: Gui Chen <gui.chen@intel.com>
Gui Chen [Mon, 14 May 2012 07:55:38 +0000 (15:55 +0800)]
add --compress-to option to support zip format in loop image
keep '--taring-to' to compatible with before
Signed-off-by: Gui Chen <gui.chen@intel.com>
Gui Chen [Wed, 9 May 2012 14:39:17 +0000 (22:39 +0800)]
container support with '%attachment' in ks
section %attachment in ks file will list file path or package name,
container will copy the files or content of the packages inside image.
then they are all taring together in loop image with '--taring-to'.
Signed-off-by: Gui Chen <gui.chen@intel.com>
Gui Chen [Wed, 2 May 2012 08:38:25 +0000 (16:38 +0800)]
add setup.cfg to specify prefix
and use sys.prefix as default prefix dir in setup.py
Signed-off-by: Gui Chen <gui.chen@intel.com>
JF Ding [Wed, 2 May 2012 07:05:43 +0000 (15:05 +0800)]
do not overwrite any existing mic.conf in setup.py
Gui Chen [Wed, 2 May 2012 05:49:35 +0000 (13:49 +0800)]
correct sys prefix in Makefile
and correct join path for mic.conf
Signed-off-by: Gui Chen <gui.chen@intel.com>
Gui Chen [Wed, 2 May 2012 05:08:52 +0000 (13:08 +0800)]
use plugin_dir in conf to substitute default plugin dir
Signed-off-by: Gui Chen <gui.chen@intel.com>
JF Ding [Wed, 2 May 2012 03:20:19 +0000 (11:20 +0800)]
ignore nonexist config file
and will not abort w/ conf errors
Gui Chen [Tue, 24 Apr 2012 09:35:24 +0000 (17:35 +0800)]
detect site conf file, use /etc/mic/mic.conf by default
Signed-off-by: Gui Chen <gui.chen@intel.com>
JF Ding [Mon, 23 Apr 2012 08:46:58 +0000 (16:46 +0800)]
remove all hardcoded path in setup.py
JF Ding [Sat, 21 Apr 2012 14:46:28 +0000 (22:46 +0800)]
update information in setup.py
JF Ding [Thu, 19 Apr 2012 09:31:00 +0000 (17:31 +0800)]
fixed bug of taring-to plus compress-disk opts for loop
Gui Chen [Thu, 19 Apr 2012 03:19:24 +0000 (11:19 +0800)]
fix symlink timezone info issue in some os tzdata
Signed-off-by: Gui Chen <gui.chen@intel.com>
JF Ding [Wed, 18 Apr 2012 14:25:48 +0000 (22:25 +0800)]
update distfiles for the development version
JF Ding [Wed, 18 Apr 2012 14:17:50 +0000 (22:17 +0800)]
tolerate some OS errors in the image confirations stage
Gui Chen [Fri, 13 Apr 2012 02:36:42 +0000 (10:36 +0800)]
bump up version to 0.9
Signed-off-by: Gui Chen <gui.chen@intel.com>
Gui Chen [Fri, 13 Apr 2012 02:26:04 +0000 (10:26 +0800)]
pre-install package support with zypp
use '%prepackages' in ks file to specify the packages needed to be pre-installed,
pre-installing would not run with scriptlet, and it's only used for zypp now.
Signed-off-by: Gui Chen <gui.chen@intel.com>
Gui Chen [Mon, 9 Apr 2012 02:02:46 +0000 (10:02 +0800)]
copy mic.conf into bootstrap
Signed-off-by: Gui Chen <gui.chen@intel.com>
Gui Chen [Thu, 5 Apr 2012 07:28:09 +0000 (15:28 +0800)]
enhance sorting for version comparsion in zypp
Signed-off-by: Gui Chen <gui.chen@intel.com>
Gui Chen [Fri, 30 Mar 2012 09:41:24 +0000 (17:41 +0800)]
rewrite chroot tar image using xml format mount point file
Signed-off-by: Gui Chen <gui.chen@intel.com>
JF Ding [Fri, 30 Mar 2012 02:50:31 +0000 (10:50 +0800)]
devel after 0.8 release
Gui Chen [Thu, 29 Mar 2012 12:50:26 +0000 (20:50 +0800)]
remove the incorrect number showing in fs src pkgs
Signed-off-by: Gui Chen <gui.chen@intel.com>
Gui Chen [Thu, 29 Mar 2012 09:12:26 +0000 (17:12 +0800)]
remove tests directory for dist in Makefile
Signed-off-by: Gui Chen <gui.chen@intel.com>
Gui Chen [Wed, 28 Mar 2012 09:16:29 +0000 (17:16 +0800)]
fix liveusb parted mkpart failure, revert mbr size expand in raw
It is a regression bug from commit:951c951
Signed-off-by: Gui Chen <gui.chen@intel.com>
Gui Chen [Wed, 28 Mar 2012 03:15:12 +0000 (11:15 +0800)]
cleanup /tmp/repolic* dir in the EULA checking
Signed-off-by: Gui Chen <gui.chen@intel.com>
Gui Chen [Tue, 27 Mar 2012 07:32:27 +0000 (15:32 +0800)]
remove '\n' in output supported arches
Signed-off-by: Gui Chen <gui.chen@intel.com>
Zhang Qiang [Mon, 26 Mar 2012 07:23:56 +0000 (15:23 +0800)]
bump up version to 0.8
Gui Chen [Fri, 23 Mar 2012 07:05:31 +0000 (15:05 +0800)]
Backport: Add alignment option for partitions
This a backport of Marko's mic2 patch with a few changes:
https://meego.gitorious.org/meego-developer-tools/image-creator/merge_requests/28
use '--align' to specify the alignment in ks file
e.g. in kickstart, 'part /boot --size 256 --ondisk sda --align=4' to
specify the alignment of boot partition as 4k, align option is counted by KB.
Signed-off-by: Gui Chen <gui.chen@intel.com>
JF Ding [Fri, 23 Mar 2012 02:54:36 +0000 (10:54 +0800)]
remove the default kernel cmdln "quiet vga" for raw
Gui Chen [Thu, 22 Mar 2012 08:59:34 +0000 (16:59 +0800)]
check if size is 0 in human_size, avoid math domain error
Signed-off-by: Gui Chen <gui.chen@intel.com>
Gui Chen [Thu, 22 Mar 2012 07:11:06 +0000 (15:11 +0800)]
update distfile mic.spec
Signed-off-by: Gui Chen <gui.chen@intel.com>
Gui Chen [Thu, 22 Mar 2012 06:27:23 +0000 (14:27 +0800)]
update distfile debian/control
Signed-off-by: Gui Chen <gui.chen@intel.com>
JF Ding [Tue, 20 Mar 2012 06:31:11 +0000 (14:31 +0800)]
import debian packaging files and add 'Obsoletes' in spec
Gui Chen [Fri, 16 Mar 2012 09:09:32 +0000 (17:09 +0800)]
unittest: update suite.py to append new cases
Signed-off-by: Gui Chen <gui.chen@intel.com>
Gui Chen [Mon, 12 Mar 2012 12:27:34 +0000 (20:27 +0800)]
unittest: remove cachedir bind mount
Signed-off-by: Gui Chen <gui.chen@intel.com>
Gui Chen [Fri, 16 Mar 2012 07:41:35 +0000 (15:41 +0800)]
Add unittest case: chroot, msger, runner
Signed-off-by: Gui Chen <gui.chen@intel.com>
Gui Chen [Fri, 16 Mar 2012 06:18:06 +0000 (14:18 +0800)]
correct stderr output lost in runner.runtool
Signed-off-by: Gui Chen <gui.chen@intel.com>
Gui Chen [Thu, 15 Mar 2012 10:07:47 +0000 (18:07 +0800)]
New mechanism for loop device allocation
1. get loopdev id, 10<id<100, considered raw image would use symlink (id>100)
2. create loopdev, if exists, use when free, or raise when used
3. return loopdev name, used by the caller
4. cleanup when mic exit, including dm table, losetup list
Signed-off-by: Gui Chen <gui.chen@intel.com>
JF Ding [Sat, 10 Mar 2012 01:15:12 +0000 (09:15 +0800)]
update the usage document for new bug reporting way
JF Ding [Sat, 10 Mar 2012 01:14:40 +0000 (09:14 +0800)]
cleaner error message from zypp backend
Zhang Qiang [Thu, 8 Mar 2012 07:03:37 +0000 (15:03 +0800)]
test: add 40 help test case and update several system test case.
Zhang Qiang [Thu, 8 Mar 2012 05:52:30 +0000 (13:52 +0800)]
unittest: adjust package list format with the change of backend.
JF Ding [Wed, 7 Mar 2012 02:57:12 +0000 (10:57 +0800)]
remove the deprecated spectacle file
JF Ding [Wed, 7 Mar 2012 02:51:58 +0000 (10:51 +0800)]
devel after 0.7 release
Gui Chen [Wed, 7 Mar 2012 02:57:56 +0000 (10:57 +0800)]
correct saveto path in chroot
Signed-off-by: Gui Chen <gui.chen@intel.com>
JF Ding [Fri, 2 Mar 2012 09:37:01 +0000 (17:37 +0800)]
new 0.7 release
JF Ding [Fri, 2 Mar 2012 09:31:23 +0000 (17:31 +0800)]
make msger.py accept unicode string
JF Ding [Fri, 2 Mar 2012 09:01:42 +0000 (17:01 +0800)]
loop taring-to feature support macro replacing
@NAME@ can be replaced with acutal image name
and a quick solution for the tarball content
Gui Chen [Fri, 2 Mar 2012 06:51:53 +0000 (14:51 +0800)]
rewrite man page for mic
Signed-off-by: Gui Chen <gui.chen@intel.com>
Gui Chen [Wed, 29 Feb 2012 09:18:16 +0000 (17:18 +0800)]
correct KickstartError to KsError
Signed-off-by: Gui Chen <gui.chen@intel.com>
Gui Chen [Mon, 27 Feb 2012 12:04:27 +0000 (20:04 +0800)]
Reuse cached rpm between yum and zypp, making the same package dir for them
Signed-off-by: Gui Chen <gui.chen@intel.com>
JF Ding [Mon, 27 Feb 2012 10:18:49 +0000 (18:18 +0800)]
raise exception instead of exit directly in zypp-backend
when it encounter transaction error, the call msger.error will
quit the tool w/o releasing the allocated loop devices.
Gui Chen [Fri, 24 Feb 2012 02:23:58 +0000 (10:23 +0800)]
chroot.py: make saveto dir when not existed
Signed-off-by: Gui Chen <gui.chen@intel.com>
Gui Chen [Thu, 23 Feb 2012 07:00:59 +0000 (15:00 +0800)]
remove '/var/cache/yum' from bind mounts
mounting yum cache to '/var/cache/yum' in chroot is risky,
for the dir cache may be recursive after mounting
Signed-off-by: Gui Chen <gui.chen@intel.com>
Gui Chen [Thu, 23 Feb 2012 06:49:46 +0000 (14:49 +0800)]
fix the type issue in opensuse 12.1
issue shows "can't multiply sequence by non-int of type 'float':
if cur > max_size + max_size*.10"
Signed-off-by: Gui Chen <gui.chen@intel.com>
Zhang Qiang [Mon, 20 Feb 2012 07:57:25 +0000 (15:57 +0800)]
Don't print warning about repo key not exist
Also print repo refreshing info while backend refreshing repodata.
JF Ding [Fri, 17 Feb 2012 14:49:31 +0000 (06:49 -0800)]
Merge pull request #13 from saukko/master
Fix regression introduced by new compression format addition.
JF Ding [Fri, 17 Feb 2012 14:22:48 +0000 (22:22 +0800)]
development after 0.6 release
using the 0.7git version and unified style and
comments for recent patches
Marko Saukko [Thu, 16 Feb 2012 19:19:59 +0000 (21:19 +0200)]
Fix regression introduced by
9a14296c6dbfd3234c5cfef0f2571ee50201d89d
Signed-off-by: Marko Saukko <marko.saukko@cybercom.com>
Zhang Qiang [Wed, 15 Feb 2012 17:14:55 +0000 (01:14 +0800)]
bump up version to 0.6
Gui Chen [Wed, 15 Feb 2012 09:24:35 +0000 (17:24 +0800)]
give hint when converted image existed
Signed-off-by: Gui Chen <gui.chen@intel.com>
Gui Chen [Wed, 15 Feb 2012 08:51:11 +0000 (16:51 +0800)]
correct matching .metadata file in bootstrap
Signed-off-by: Gui Chen <gui.chen@intel.com>
Gui Chen [Wed, 15 Feb 2012 05:52:11 +0000 (13:52 +0800)]
conf.py: proxy scheme check
Signed-off-by: Gui Chen <gui.chen@intel.com>
Gui Chen [Wed, 15 Feb 2012 05:21:05 +0000 (13:21 +0800)]
space check before copy image
Signed-off-by: Gui Chen <gui.chen@intel.com>