return 0
@classmethod
- def do_chroot(self, target, cmd):#chroot.py parse opts&args
+ def do_chroot(self, target, cmd=[]):#chroot.py parse opts&args
try:
if len(cmd) != 0:
cmdline = ' '.join(cmd)
return 0
@classmethod
- def do_chroot(cls, target, cmd):
+ def do_chroot(cls, target, cmd=[]):
os_image = cls.do_unpack(target)
os_image_dir = os.path.dirname(os_image)
return 0
@classmethod
- def do_chroot(cls, target, cmd):
+ def do_chroot(cls, target, cmd=[]):
os_image = cls.do_unpack(target)
os_image_dir = os.path.dirname(os_image)
return 0
@classmethod
- def _do_chroot_tar(cls, target, cmd):
+ def _do_chroot_tar(cls, target, cmd=[]):
mountfp_xml = os.path.splitext(target)[0] + '.xml'
if not os.path.exists(mountfp_xml):
raise errors.CreatorError("No mount point file found for this tar "
shutil.rmtree(tmpdir, ignore_errors=True)
@classmethod
- def do_chroot(cls, target, cmd):
+ def do_chroot(cls, target, cmd=[]):
if target.endswith('.tar'):
import tarfile
if tarfile.is_tarfile(target):
return 0
@classmethod
- def do_chroot(cls, target, cmd):
+ def do_chroot(cls, target, cmd=[]):
img = target
imgsize = misc.get_file_size(img) * 1024L * 1024L
partedcmd = fs_related.find_binary_path("parted")