~oubiwann/vmbuilder/338339-template-paths

« back to all changes in this revision

Viewing changes to VMBuilder/plugins/__init__.py

  • Committer: Soren Hansen
  • Date: 2008-12-16 13:32:31 UTC
  • mfrom: (282.1.1 vmbuilder)
  • Revision ID: soren@canonical.com-20081216133231-zcvzxylh4tx5j4h0
Merge chroot bugfix from Chuck.

Show diffs side-by-side

added added

removed removed

Lines of Context:
75
75
    def run_in_target(self, *args, **kwargs):
76
76
        if not self.vm.fsmounted:
77
77
            raise VMBuilderException('install_from_template called while file system is not mounted')
78
 
        return run_cmd('chroot', self.destdir, *args, **kwargs)
 
78
        return run_cmd('chroot', self.vm.installdir, *args, **kwargs)