import os, sys, re
from optparse import SUPPRESS_HELP
-from mic import msger
+from mic import msger, rt_util
from mic.utils import cmdln, errors, rpmmisc
from conf import configmgr
from plugin import pluginmgr
if os.geteuid() != 0:
raise msger.error("Root permission is required, abort")
+ if configmgr.bootstrap['enable']:
+ configmgr._ksconf = argv[1]
+ rt_util.bootstrap_mic()
+
return argv
def do_auto(self, subcmd, opts, *args):
import os
import sys
-from mic import chroot, msger, rt_util
+from mic import chroot, msger
from mic.utils import cmdln, misc, errors, fs_related
from mic.imager import fs
from mic.conf import configmgr
pkgmgrs = pluginmgr.get_plugins('backend').keys()
raise errors.CreatorError("Can't find package manager: %s (availables: %s)" % (creatoropts['pkgmgr'], ', '.join(pkgmgrs)))
- if creatoropts['runtime']:
- rt_util.runmic_in_runtime(creatoropts['runtime'], creatoropts, ksconf, None)
-
creator = fs.FsImageCreator(creatoropts, pkgmgr)
creator._include_src = opts.include_src
import shutil
import tempfile
-from mic import chroot, msger, rt_util
+from mic import chroot, msger
from mic.utils import misc, fs_related, errors
from mic.conf import configmgr
import mic.imager.livecd as livecd
pkgmgrs = pluginmgr.get_plugins('backend').keys()
raise errors.CreatorError("Can't find package manager: %s (availables: %s)" % (creatoropts['pkgmgr'], ', '.join(pkgmgrs)))
- if creatoropts['runtime']:
- rt_util.runmic_in_runtime(creatoropts['runtime'], creatoropts, ksconf, None)
-
creator = livecd.LiveCDImageCreator(creatoropts, pkgmgr)
if len(recording_pkgs) > 0:
import shutil
import tempfile
-from mic import chroot, msger, rt_util
+from mic import chroot, msger
from mic.utils import misc, fs_related, errors
from mic.utils.partitionedfs import PartitionedMount
from mic.conf import configmgr
pkgmgrs = pluginmgr.get_plugins('backend').keys()
raise errors.CreatorError("Can't find package manager: %s (availables: %s)" % (creatoropts['pkgmgr'], ', '.join(pkgmgrs)))
- if creatoropts['runtime']:
- rt_util.runmic_in_runtime(creatoropts['runtime'], creatoropts, ksconf, None)
-
creator = liveusb.LiveUSBImageCreator(creatoropts, pkgmgr)
if len(recording_pkgs) > 0:
import shutil
import tempfile
-from mic import chroot, msger, rt_util
+from mic import chroot, msger
from mic.utils import misc, fs_related, errors, cmdln
from mic.conf import configmgr
from mic.plugin import pluginmgr
% (creatoropts['pkgmgr'],
', '.join(pkgmgrs)))
- if creatoropts['runtime']:
- rt_util.runmic_in_runtime(creatoropts['runtime'], creatoropts, ksconf, None)
-
creator = LoopImageCreator(creatoropts,
pkgmgr,
opts.compress_image,
import re
import tempfile
-from mic import chroot, msger, rt_util
+from mic import chroot, msger
from mic.utils import misc, fs_related, errors, runner, cmdln
from mic.conf import configmgr
from mic.plugin import pluginmgr
pkgmgrs = pluginmgr.get_plugins('backend').keys()
raise errors.CreatorError("Can't find package manager: %s (availables: %s)" % (creatoropts['pkgmgr'], ', '.join(pkgmgrs)))
- if creatoropts['runtime']:
- rt_util.runmic_in_runtime(creatoropts['runtime'], creatoropts, ksconf, None)
-
creator = raw.RawImageCreator(creatoropts, pkgmgr, opts.compress_image)
if len(recording_pkgs) > 0: