new feature: runtime support and bootstrap runtime
1) Using --runtime=bootstrap option to run mic in bootstrap mode
example: mic cr fs netbook.ks --runtime=bootstrap
2) Get target image rpm version(from ks file's repo url), which
can be used to select correct bootstap.
3) Check local available bootstrap from default bootstrap directory
(/var/mic/bootstrap/), if any local bootstrap can be used, then
goto 5)
4) Check available bootstrap info from /etc/mic/mic.conf, rpm version
of bootstrap is got from repodata, if rpmversion matched with target
image rpm version, then select that bootstrap info.
5) Use zypp package manager to create bootstrap
6) We assume host mic is what user want to use, so copy host mic to
bootstrap
7) copy host necessary files to bootstrap: /etc/resolv.conf, repos,
proxy info.
8) run mic in bootstrap.
Note: Currently zypp backend is used to creating bootstrap env, but it's
not a good ideal, because zypp backend has some dependencies, such as
python-zypp, libzypp, libsatsolver. Next step, we would use general
depdendency resolve algorithm to replace zypp backend.
14 files changed: