tools/mic.git
11 years agoMerge "misc.py: remove few unnecessary checks" into devel
Jian-feng Ding [Mon, 5 Nov 2012 11:39:51 +0000 (03:39 -0800)]
Merge "misc.py: remove few unnecessary checks" into devel

11 years agomisc.py: remove few unnecessary checks
Artem Bityutskiy [Wed, 24 Oct 2012 07:32:46 +0000 (10:32 +0300)]
misc.py: remove few unnecessary checks

We use python 2.5 features in several places and we have the
'Requires:   python >= 2.5' in our RPM spec file. This means that
we do not have to check whether hashlib and xml.etree exist, we can
just use them instead, because they are part of python 2.5.

Similarly, remove the 'with_statement' importing, because 'with'
was added in 2.5.

Change-Id: I14cc9741f66f8d397744b1b37f9a55dc47877a9c
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@intel.com>
11 years agoclean up unused code in raw image
Gui Chen [Wed, 24 Oct 2012 08:05:38 +0000 (16:05 +0800)]
clean up unused code in raw image

Change-Id: Ic047ff24c1c7728147f4a990236644b92cce32e8

Signed-off-by: Gui Chen <gui.chen@intel.com>
11 years agofix mic chroot failure caused by unmatching parameters
Gui Chen [Wed, 24 Oct 2012 07:34:50 +0000 (15:34 +0800)]
fix mic chroot failure caused by unmatching parameters

in do_chroot, cmd should have default value,
otherwise the caller in former code will be failed

Change-Id: Iaeb605f744083e23d9745dde4338137033e4c1b3

Signed-off-by: Gui Chen <gui.chen@intel.com>
11 years agobmap: increase minor version number
Artem Bityutskiy [Thu, 18 Oct 2012 08:37:38 +0000 (11:37 +0300)]
bmap: increase minor version number

We've done some compatible changes and it is a good idea to incread the
minor bmap version number now.

Also, add some XML comments explaining the versioning.

Signed-off-by: Artem Bityutskiy <artem.bityutskiy@intel.com>
11 years agobmap: support sha1 checksums
Artem Bityutskiy [Thu, 18 Oct 2012 08:20:50 +0000 (11:20 +0300)]
bmap: support sha1 checksums

This patch addresses another complaint from Henning Schroeder and adds
SHA1 checksum for each block range.

Change-Id: Ib1835ce2ca26d4e8ebe46a1e83c083822c47ce21
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@intel.com>
11 years agoRawImageCreator: introduce a function for hash calculation
Artem Bityutskiy [Thu, 18 Oct 2012 15:17:06 +0000 (18:17 +0300)]
RawImageCreator: introduce a function for hash calculation

Introduce a separate function for hash calculations. I will need
hash in bmap code, so it is nice to have a common helper for this.

Change-Id: I859450803a0c6cfa9bb6db738a6931508572374f
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@intel.com>
11 years agoRawImageCreator: remove meter for hash calculation
Artem Bityutskiy [Thu, 18 Oct 2012 14:48:49 +0000 (17:48 +0300)]
RawImageCreator: remove meter for hash calculation

We currently use the progress meter when calculating hash functions
of the raw image file. Well, there is nothing bad with this, but this
is not really necessary. I am removing this because I am going to
introduce a helper function for calculating hashes, and I do not want
to complicate it with a meter.

So, remove the meter. We can add it back if we find this necessary
in the future.

This makes the code a bit less complex as well.

Change-Id: I7da651f82dcbb14e16e1dccbbc4ee73cc1aa7e0b
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@intel.com>
11 years agoRawImageCreator: use hashlib unconditionally
Artem Bityutskiy [Thu, 18 Oct 2012 11:50:23 +0000 (14:50 +0300)]
RawImageCreator: use hashlib unconditionally

mic does not work with python < 2.5 (see distfiles/mic.spec, for example), so
we can use hashlib without falling-back to 'import sha1'. This patch cleans-up
the code a bit and removes the fall-back to 'import sha1' stuff.

I move 'import hashlib' to the top level because it is cleaner and because I
will need hashlib very soon in the next patch.

Signed-off-by: Artem Bityutskiy <artem.bityutskiy@intel.com>
11 years agobmap: move human-readable stuff to comments
Artem Bityutskiy [Wed, 17 Oct 2012 14:48:30 +0000 (17:48 +0300)]
bmap: move human-readable stuff to comments

I've got feed-back from Henning Schroeder that it is bad idea to provide
human-only information in machine-parsible parts of the XML, simply because
someone may be tempted to use it.

And he is right. This patch moves all the human-only date to XML comments.

It also amends the BMAP xml header comment by adding more information.

Change-Id: If5c62c2277686dfd3c889ae6f59a9d1caa94b026
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@intel.com>
11 years agobmap: fix the image file open mode
Artem Bityutskiy [Thu, 18 Oct 2012 15:31:29 +0000 (18:31 +0300)]
bmap: fix the image file open mode

Open the image file in R/O binary mode instead of the default
R/O mode.

Change-Id: Ibc8b69fdf0b920c716e7cc9c23017747206e5500
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@intel.com>
11 years agohandle unicode in CreatorError and UsageError
Gui Chen [Thu, 18 Oct 2012 14:02:36 +0000 (22:02 +0800)]
handle unicode in CreatorError and UsageError

when code like 'raise CreatorError(str(e))' and e.msg is unicode,
this will be failed, this patch will fix such issue

Signed-off-by: Gui Chen <gui.chen@intel.com>
11 years agoupdate README.rst
lhh [Tue, 9 Oct 2012 19:18:46 +0000 (15:18 -0400)]
update README.rst

Signed-off-by: lhh <huanhuanx.li@intel.com>
11 years agopoint to tizen repo, not meego
Anas Nashif [Tue, 2 Oct 2012 20:23:25 +0000 (13:23 -0700)]
point to tizen repo, not meego

Change-Id: I50e62f957dbdbfbc178558598881e041fe0f1643

11 years agoAdd block map functionality
Artem Bityutskiy [Fri, 28 Sep 2012 10:26:56 +0000 (13:26 +0300)]
Add block map functionality

This patch add a 'generate_bmap()' method to the RawImageCreator
class and makes the '--generate-bmap' option actually work. The generated
file has '.bmap' extention and the same name as the raw image file.

Signed-off-by: Artem Bityutskiy <artem.bityutskiy@intel.com>
Change-Id: I54ab3bc7274160c697dce4f8e296b46dda28cdd2

11 years agoIntroduce the --generate-bmap option
Artem Bityutskiy [Thu, 27 Sep 2012 14:33:38 +0000 (17:33 +0300)]
Introduce the --generate-bmap option

This patch only introduce the --generate-bmap option of the 'raw' subcommand
and does not implement it. The implementation is added by in the follo-up
patches.

Signed-off-by: Artem Bityutskiy <artem.bityutskiy@intel.com>
Change-Id: I89f1090f52405939ac77ef6599a3925043d4927b

11 years agoCleanup RawImageCreator a bit
Artem Bityutskiy [Wed, 3 Oct 2012 15:13:23 +0000 (18:13 +0300)]
Cleanup RawImageCreator a bit

This patch cleans-up the RawImageCreator code a little bit. We construct
the full name for the files we generate many times in various places, which
looks untidy. This commit introduces 2 helper functions: _full_name() and
_full_path() which return full name for a file and full path to a file,
correspondingly. The code becomes more readable with this change.

But also, this is a preparation to one of the following patches where we'll
need to construct full path for the bmap file. We do not want to add yet
another place where we construct this manually, so we better have a helper
function.

Signed-off-by: Artem Bityutskiy <artem.bityutskiy@intel.com>
Change-Id: I9ac52c95e4b16bcd227df467439ac2ae87b1c145

11 years agodecide uniq arch when one repo only has one uniq arch
Gui Chen [Sat, 22 Sep 2012 15:00:40 +0000 (23:00 +0800)]
decide uniq arch when one repo only has one uniq arch

the arch detection is changed: when one uniq arch is found in a repo,
this arch should be detected arch now.

Signed-off-by: Gui Chen <gui.chen@intel.com>
11 years agofix version comparison for bootstrap
Gui Chen [Sat, 22 Sep 2012 10:41:13 +0000 (18:41 +0800)]
fix version comparison for bootstrap

Signed-off-by: Gui Chen <gui.chen@intel.com>
11 years agofix extlinux not found issue
Gui Chen [Sat, 22 Sep 2012 10:39:58 +0000 (18:39 +0800)]
fix extlinux not found issue

Signed-off-by: Gui Chen <gui.chen@intel.com>
11 years agofix syntax warning for USAGE.rst
Gui Chen [Fri, 21 Sep 2012 13:17:49 +0000 (21:17 +0800)]
fix syntax warning for USAGE.rst

Change-Id: I5e67db666bb1ee57dc6f05bcdff27fd5d6be1a13
Signed-off-by: Gui Chen <gui.chen@intel.com>
11 years agorelocate dist files and add change log
Gui Chen [Thu, 20 Sep 2012 08:02:18 +0000 (16:02 +0800)]
relocate dist files and add change log

Change-Id: Idd31d153f36ff12b5a0aedee644d3811038b599b
Signed-off-by: Gui Chen <gui.chen@intel.com>
11 years agosupport running specified command for mic chroot
yanqingx.li [Wed, 26 Sep 2012 06:47:55 +0000 (14:47 +0800)]
support running specified command for mic chroot

usage: mic chroot CHROOT [COMMAND [ARGS]]
this feature enables running command with non-interactive

Change-Id: Ic7e74a00c83e3cef5684c2ee94a755389ba4276d

11 years agobump up version to 0.15
Gui Chen [Thu, 20 Sep 2012 07:12:49 +0000 (15:12 +0800)]
bump up version to 0.15

Signed-off-by: Gui Chen <gui.chen@intel.com>
11 years agoadd bootstrap defined path to PATH variable
Gui Chen [Thu, 20 Sep 2012 06:56:50 +0000 (14:56 +0800)]
add bootstrap defined path to PATH variable

env variable PATH should be defined in bootstrap,
and they should be append to PATH when chroot

Signed-off-by: Gui Chen <gui.chen@intel.com>
11 years agosplit out username and password in zypp repo file
Gui Chen [Tue, 18 Sep 2012 13:51:33 +0000 (21:51 +0800)]
split out username and password in zypp repo file

Signed-off-by: Gui Chen <gui.chen@intel.com>
11 years agoadd --repourl for BOSS to replace baseurl in zypp repo file
Gui Chen [Tue, 18 Sep 2012 13:24:38 +0000 (21:24 +0800)]
add --repourl for BOSS to replace baseurl in zypp repo file

for BOSS, the baseurl in zypp repo file should be corrected.
to enable it, append the option like below:
--repourl="Tizen-main=http://download.example.com/x/y/z/"
--repourl="Tizen-base=http://download.example.com/z/y/x/"

Signed-off-by: Gui Chen <gui.chen@intel.com>
Change-Id: I9e7d395de15fed6b8f89899ff0721d3eb515ff45

11 years agoupdate usage.rst for man page
Gui Chen [Mon, 17 Sep 2012 06:51:47 +0000 (14:51 +0800)]
update usage.rst for man page

Signed-off-by: Gui Chen <gui.chen@intel.com>
11 years agoavoid traceback when loopback is NoneType
Gui Chen [Wed, 12 Sep 2012 02:54:09 +0000 (10:54 +0800)]
avoid traceback when loopback is NoneType

Signed-off-by: Gui Chen <gui.chen@intel.com>
11 years agolseek limit to 2G in 32bit env
Gui Chen [Wed, 12 Sep 2012 02:51:30 +0000 (10:51 +0800)]
lseek limit to 2G in 32bit env

Signed-off-by: Gui Chen <gui.chen@intel.com>
11 years agochmod mic script inside bootstrap to executable
Gui Chen [Tue, 11 Sep 2012 08:35:55 +0000 (16:35 +0800)]
chmod mic script inside bootstrap to executable

Signed-off-by: Gui Chen <gui.chen@intel.com>
11 years agoadd optional packages which can be skiped for bootstrap
Gui Chen [Tue, 11 Sep 2012 08:34:23 +0000 (16:34 +0800)]
add optional packages which can be skiped for bootstrap

Signed-off-by: Gui Chen <gui.chen@intel.com>
11 years agofix rpm install failed for arm in bootstrap
Gui Chen [Tue, 11 Sep 2012 08:05:03 +0000 (16:05 +0800)]
fix rpm install failed for arm in bootstrap

Signed-off-by: Gui Chen <gui.chen@intel.com>
11 years agoproxy setting to be compatible with old version of yum
Gui Chen [Mon, 10 Sep 2012 13:02:00 +0000 (21:02 +0800)]
proxy setting to be compatible with old version of yum

Signed-off-by: Gui Chen <gui.chen@intel.com>
11 years agofix help command incorrect issue
Gui Chen [Mon, 10 Sep 2012 11:14:03 +0000 (19:14 +0800)]
fix help command incorrect issue

Signed-off-by: Gui Chen <gui.chen@intel.com>
11 years agoadd more packages for tizen bootstrap
Gui Chen [Mon, 10 Sep 2012 02:10:15 +0000 (10:10 +0800)]
add more packages for tizen bootstrap

Signed-off-by: Gui Chen <gui.chen@intel.com>
11 years agoadd some packages to tizen bootstrap
Gui Chen [Thu, 30 Aug 2012 03:12:04 +0000 (11:12 +0800)]
add some packages to tizen bootstrap

Signed-off-by: Gui Chen <gui.chen@intel.com>
11 years agojust warning when dir is not valid tizen/meego chroot
Gui Chen [Wed, 29 Aug 2012 09:38:15 +0000 (17:38 +0800)]
just warning when dir is not valid tizen/meego chroot

Signed-off-by: Gui Chen <gui.chen@intel.com>
11 years agoresolve proxy issue in yum backend
Gui Chen [Wed, 29 Aug 2012 09:33:42 +0000 (17:33 +0800)]
resolve proxy issue in yum backend

Signed-off-by: Gui Chen <gui.chen@intel.com>
11 years agorefine parsing bootstrap.conf
Gui Chen [Wed, 29 Aug 2012 09:32:34 +0000 (17:32 +0800)]
refine parsing bootstrap.conf

Signed-off-by: Gui Chen <gui.chen@intel.com>
11 years agorelocate macro substitution in ks file
Gui Chen [Wed, 29 Aug 2012 09:31:14 +0000 (17:31 +0800)]
relocate macro substitution in ks file

Signed-off-by: Gui Chen <gui.chen@intel.com>
11 years agofind the real path of binary script firstly
Gui Chen [Wed, 29 Aug 2012 09:29:36 +0000 (17:29 +0800)]
find the real path of binary script firstly

Signed-off-by: Gui Chen <gui.chen@intel.com>
11 years agoset default pkgmgr to auto and preferred to use zypp
Gui Chen [Wed, 29 Aug 2012 09:28:42 +0000 (17:28 +0800)]
set default pkgmgr to auto and preferred to use zypp

Signed-off-by: Gui Chen <gui.chen@intel.com>
11 years agoMerge branch 'bootstrap' into devel
Gui Chen [Tue, 28 Aug 2012 13:32:06 +0000 (21:32 +0800)]
Merge branch 'bootstrap' into devel

Conflicts:
mic/creator.py

Signed-off-by: Gui Chen <gui.chen@intel.com>
11 years agosupport meego boostrap with meego packages list
Gui Chen [Tue, 21 Aug 2012 15:36:27 +0000 (23:36 +0800)]
support meego boostrap with meego packages list

Signed-off-by: Gui Chen <gui.chen@intel.com>
11 years agoauto selecting backend with 'pkgmgr=auto'
Gui Chen [Tue, 21 Aug 2012 15:31:01 +0000 (23:31 +0800)]
auto selecting backend with 'pkgmgr=auto'

Signed-off-by: Gui Chen <gui.chen@intel.com>
11 years agohandle logfile to record bootstrap output when specified
Gui Chen [Tue, 21 Aug 2012 15:29:01 +0000 (23:29 +0800)]
handle logfile to record bootstrap output when specified

Signed-off-by: Gui Chen <gui.chen@intel.com>
11 years agocorrect return value from subprocess
Gui Chen [Tue, 21 Aug 2012 07:04:39 +0000 (15:04 +0800)]
correct return value from subprocess

Signed-off-by: Gui Chen <gui.chen@intel.com>
11 years agosupport multi udev rules.d path to detect proper one
Gui Chen [Tue, 21 Aug 2012 06:58:45 +0000 (14:58 +0800)]
support multi udev rules.d path to detect proper one

Signed-off-by: Gui Chen <gui.chen@intel.com>
11 years agocorrect arch support in misc.get_package and bootstrap
Gui Chen [Tue, 21 Aug 2012 06:52:35 +0000 (14:52 +0800)]
correct arch support in misc.get_package and bootstrap

Signed-off-by: Gui Chen <gui.chen@intel.com>
11 years agoclean mounts in bootstrap.cleanup
Gui Chen [Tue, 21 Aug 2012 06:28:04 +0000 (14:28 +0800)]
clean mounts in bootstrap.cleanup

Signed-off-by: Gui Chen <gui.chen@intel.com>
11 years agodetect python site dir inside bootstrap
Gui Chen [Tue, 21 Aug 2012 06:16:19 +0000 (14:16 +0800)]
detect python site dir inside bootstrap

Signed-off-by: Gui Chen <gui.chen@intel.com>
11 years agorefine safecopy in rt_util
Gui Chen [Tue, 21 Aug 2012 06:06:35 +0000 (14:06 +0800)]
refine safecopy in rt_util

Signed-off-by: Gui Chen <gui.chen@intel.com>
11 years agoMerge "better handling to check arguments before cmd running" into devel
Jian-feng Ding [Mon, 20 Aug 2012 08:40:13 +0000 (01:40 -0700)]
Merge "better handling to check arguments before cmd running" into devel

11 years agominor change to befit opensuse
Gui Chen [Thu, 16 Aug 2012 15:20:48 +0000 (08:20 -0700)]
minor change to befit opensuse

Signed-off-by: Gui Chen <gui.chen@intel.com>
11 years agouse cached rpm if integrated for creating bootstrap
Gui Chen [Thu, 16 Aug 2012 11:56:30 +0000 (19:56 +0800)]
use cached rpm if integrated for creating bootstrap

Signed-off-by: Gui Chen <gui.chen@intel.com>
11 years agoadd preinstall and postinstall scripts handling
Gui Chen [Thu, 16 Aug 2012 07:10:44 +0000 (15:10 +0800)]
add preinstall and postinstall scripts handling

Signed-off-by: Gui Chen <gui.chen@intel.com>
11 years agoimplement Bootstrap.run to do bootstrap stuff
Gui Chen [Thu, 16 Aug 2012 06:29:28 +0000 (14:29 +0800)]
implement Bootstrap.run to do bootstrap stuff

Signed-off-by: Gui Chen <gui.chen@intel.com>
11 years agotouch distro file to present bootstrap using
Gui Chen [Thu, 16 Aug 2012 06:21:04 +0000 (14:21 +0800)]
touch distro file to present bootstrap using

Signed-off-by: Gui Chen <gui.chen@intel.com>
11 years agoclear message when chrooting bootstrap
Gui Chen [Wed, 15 Aug 2012 15:45:06 +0000 (23:45 +0800)]
clear message when chrooting bootstrap

Signed-off-by: Gui Chen <gui.chen@intel.com>
11 years agomake source installation workable with bootstrap
Gui Chen [Wed, 15 Aug 2012 15:30:12 +0000 (23:30 +0800)]
make source installation workable with bootstrap

Signed-off-by: Gui Chen <gui.chen@intel.com>
11 years agomake proper for python interpreter in bootstrap mic
Gui Chen [Wed, 15 Aug 2012 15:28:40 +0000 (23:28 +0800)]
make proper for python interpreter in bootstrap mic

Signed-off-by: Gui Chen <gui.chen@intel.com>
11 years agoskip non-existent rpm
Gui Chen [Wed, 15 Aug 2012 13:36:35 +0000 (21:36 +0800)]
skip non-existent rpm

Signed-off-by: Gui Chen <gui.chen@intel.com>
11 years agocall bootstrap_mic to do the bootstrap work
Gui Chen [Wed, 15 Aug 2012 13:33:49 +0000 (21:33 +0800)]
call bootstrap_mic to do the bootstrap work

Signed-off-by: Gui Chen <gui.chen@intel.com>
11 years agoprovide bootstrap.conf to handle bootstrap
Gui Chen [Wed, 15 Aug 2012 13:33:04 +0000 (21:33 +0800)]
provide bootstrap.conf to handle bootstrap

Signed-off-by: Gui Chen <gui.chen@intel.com>
11 years agonew rt_utils to handle mic running in bootstrap
Gui Chen [Wed, 15 Aug 2012 13:29:51 +0000 (21:29 +0800)]
new rt_utils to handle mic running in bootstrap

Signed-off-by: Gui Chen <gui.chen@intel.com>
11 years agonew bootstrap.py to handle bootstrap creating
Gui Chen [Wed, 15 Aug 2012 13:29:07 +0000 (21:29 +0800)]
new bootstrap.py to handle bootstrap creating

Signed-off-by: Gui Chen <gui.chen@intel.com>
11 years agobear unexpected checksum type when getting metadata
Gui Chen [Tue, 14 Aug 2012 13:53:51 +0000 (21:53 +0800)]
bear unexpected checksum type when getting metadata

Signed-off-by: Gui Chen <gui.chen@intel.com>
11 years agobetter handling to check arguments before cmd running
Gui Chen [Tue, 14 Aug 2012 13:52:35 +0000 (21:52 +0800)]
better handling to check arguments before cmd running

Signed-off-by: Gui Chen <gui.chen@inte .com>
11 years agobetter handling to check arguments before cmd running
Gui Chen [Tue, 14 Aug 2012 03:36:39 +0000 (11:36 +0800)]
better handling to check arguments before cmd running

Signed-off-by: Gui Chen <gui.chen@intel.com>
11 years agobear unexpected checksum type when getting metadata
Gui Chen [Mon, 13 Aug 2012 07:31:06 +0000 (15:31 +0800)]
bear unexpected checksum type when getting metadata

Signed-off-by: Gui Chen <gui.chen@intel.com>
11 years agobetter handling to check arguments before cmd running
Gui Chen [Mon, 13 Aug 2012 07:25:26 +0000 (15:25 +0800)]
better handling to check arguments before cmd running

Signed-off-by: Gui Chen <gui.chen@inte-.com>
11 years agobump up version to 0.14 0.14
Gui Chen [Fri, 3 Aug 2012 10:18:16 +0000 (18:18 +0800)]
bump up version to 0.14

Signed-off-by: Gui Chen <gui.chen@intel.com>
11 years agomake swap part with label and uuid
Gui Chen [Fri, 3 Aug 2012 10:16:26 +0000 (18:16 +0800)]
make swap part with label and uuid

Signed-off-by: Gui Chen <gui.chen@intel.com>
11 years agofix live img create failure when label assigned
Gui Chen [Thu, 2 Aug 2012 07:17:16 +0000 (15:17 +0800)]
fix live img create failure when label assigned

and clean some trailing space

Signed-off-by: Gui Chen <gui.chen@intel.com>
11 years agoavoid traceback of converting live img to fs/loop/raw
Gui Chen [Thu, 2 Aug 2012 07:11:27 +0000 (15:11 +0800)]
avoid traceback of converting live img to fs/loop/raw

Signed-off-by: Gui Chen <gui.chen@intel.com>
11 years agobetter handling for print version
Gui Chen [Thu, 2 Aug 2012 07:06:56 +0000 (15:06 +0800)]
better handling for print version

Signed-off-by: Gui Chen <gui.chen@intel.com>
11 years agoprompt user to handle when errors occured in ks file
Gui Chen [Wed, 1 Aug 2012 13:34:02 +0000 (21:34 +0800)]
prompt user to handle when errors occured in ks file

Signed-off-by: Gui Chen <gui.chen@intel.com>
11 years agoadjust timezone warning to exception and refactor cp cmd
Gui Chen [Wed, 1 Aug 2012 06:17:08 +0000 (14:17 +0800)]
adjust timezone warning to exception and refactor cp cmd

Signed-off-by: Gui Chen <gui.chen@intel.com>
11 years agoprompt user to handle image configuration when thing goes wrong
Gui Chen [Wed, 1 Aug 2012 06:08:40 +0000 (14:08 +0800)]
prompt user to handle image configuration when thing goes wrong

Signed-off-by: Gui Chen <gui.chen@intel.com>
11 years agofix minor bug of 'mic --version'
Gui Chen [Wed, 1 Aug 2012 03:25:21 +0000 (11:25 +0800)]
fix minor bug of 'mic --version'

Signed-off-by: Gui Chen <gui.chen@intel.com>
11 years agorewrite syslinux/extlinux conf when kernel is symlink
Gui Chen [Tue, 31 Jul 2012 11:50:49 +0000 (19:50 +0800)]
rewrite syslinux/extlinux conf when kernel is symlink

Signed-off-by: Gui Chen <gui.chen@intel.com>
11 years agouse device UUID in etc/fstab for raw image
Gui Chen [Tue, 31 Jul 2012 03:22:13 +0000 (11:22 +0800)]
use device UUID in etc/fstab for raw image

Signed-off-by: Gui Chen <gui.chen@intel.com>
11 years agosupport part label assigning for raw image
Gui Chen [Tue, 31 Jul 2012 03:19:43 +0000 (11:19 +0800)]
support part label assigning for raw image

Signed-off-by: Gui Chen <gui.chen@intel.com>
11 years agoverify open-checksum to decide whether download metadata files
Gui Chen [Tue, 31 Jul 2012 03:17:44 +0000 (11:17 +0800)]
verify open-checksum to decide whether download metadata files

Signed-off-by: Gui Chen <gui.chen@intel.com>
11 years agoMerge "fixed wrong usage of rstrip in loop.py"
JF Ding [Fri, 27 Jul 2012 08:06:28 +0000 (01:06 -0700)]
Merge "fixed wrong usage of rstrip in loop.py"

11 years agofix some minor bugs
Gui Chen [Thu, 26 Jul 2012 03:21:44 +0000 (11:21 +0800)]
fix some minor bugs

Signed-off-by: Gui Chen <gui.chen@intel.com>
12 years agofixed wrong usage of rstrip in loop.py
JF Ding [Wed, 18 Jul 2012 10:15:53 +0000 (18:15 +0800)]
fixed wrong usage of rstrip in loop.py

and many code cleanup, mainly for extra length lines

12 years agotypo fix 0.13
Gui Chen [Tue, 17 Jul 2012 01:18:28 +0000 (09:18 +0800)]
typo fix

Signed-off-by: Gui Chen <gui.chen@intel.com>
12 years agochroot: mark user's choice as root mounted to avoid auto-select
Gui Chen [Fri, 13 Jul 2012 13:13:43 +0000 (21:13 +0800)]
chroot: mark user's choice as root mounted to avoid auto-select

Signed-off-by: Gui Chen <gui.chen@intel.com>
12 years agoimprove handling of packing image
Gui Chen [Fri, 13 Jul 2012 07:01:06 +0000 (15:01 +0800)]
improve handling of packing image

'gzip -f' doesn't work as expect in some os, will not gzip '.tar.gz' ended tarball

Signed-off-by: Gui Chen <gui.chen@intel.com>
12 years agofixing the compatibile problem of misc.get_distro
JF Ding [Thu, 12 Jul 2012 09:18:27 +0000 (17:18 +0800)]
fixing the compatibile problem of misc.get_distro

12 years agobump up version to 0.13
Gui Chen [Thu, 12 Jul 2012 05:43:07 +0000 (13:43 +0800)]
bump up version to 0.13

Signed-off-by: Gui Chen <gui.chen@intel.com>
12 years agoconcise output of distro information printing
JF Ding [Thu, 12 Jul 2012 06:39:50 +0000 (14:39 +0800)]
concise output of distro information printing

12 years agosupported tizen bootstrap included mic
Gui Chen [Wed, 11 Jul 2012 07:59:27 +0000 (15:59 +0800)]
supported tizen bootstrap included mic

this function is not for normal user, but for special usage

Signed-off-by: Gui Chen <gui.chen@intel.com>
12 years agocleanup trailing spaces and extra-long lines
JF Ding [Wed, 11 Jul 2012 06:48:42 +0000 (14:48 +0800)]
cleanup trailing spaces and extra-long lines

12 years agoadd choice for msger and ask user to choose root partition
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>
12 years agohide loopdev presentation to avoid popup message in Ubuntu 12.04
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>
12 years agoput mic version to build log
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>
12 years agosave log file default when --release specified
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>