~zulcss/vmbuilder/vmbuilder-karmic-ec2

« back to all changes in this revision

Viewing changes to VMBuilder/plugins/ubuntu/dapper.py

  • Committer: Soren Hansen
  • Date: 2009-05-06 07:15:11 UTC
  • Revision ID: soren@canonical.com-20090506071511-jfl1h7l27gbu8h4h
Put an install log into Ubuntu guests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
283
283
        self.vm.distro.run_in_target(*args, **kwargs)
284
284
 
285
285
    def copy_to_target(self, infile, destpath):
 
286
        logging.debug("Copying %s on host to %s in guest" % (infile, destpath))
286
287
        dir = '%s/%s' % (self.destdir, os.path.dirname(destpath))
287
288
        if not os.path.isdir(dir):
288
289
            os.makedirs(dir)
308
309
            self.install_from_template('/etc/default/locale', 'locale', { 'lang' : self.vm.lang })
309
310
        self.run_in_target('dpkg-reconfigure', '-fnoninteractive', '-pcritical', 'locales')
310
311
        self.run_in_target('dpkg-reconfigure', '-pcritical', 'locales')
 
312
 
 
313
    def install_vmbuilder_log(self, logfile, rootdir):
 
314
        shutil.copy(logfile, '%s/var/log/vmbuilder-install.log' % (rootdir,))