~ubuntu-branches/ubuntu/precise/vm-builder/precise

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Soren Hansen
  • Date: 2010-02-22 13:56:18 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20100222135618-la13e3mu397rg0m1
Tags: 0.12.0-0ubuntu1
* New upstream release. (FFe: LP: #525741)
  - All patches incorporated upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#
2
2
#    Uncomplicated VM Builder
3
 
#    Copyright (C) 2007-2009 Canonical Ltd.
4
 
#    
 
3
#    Copyright (C) 2007-2010 Canonical Ltd.
 
4
#
5
5
#    See AUTHORS for list of contributors
6
6
#
7
7
#    This program is free software: you can redistribute it and/or modify
23
23
from   VMBuilder.plugins.ubuntu.jaunty import Jaunty
24
24
 
25
25
class Karmic(Jaunty):
 
26
    preferred_filesystem = 'ext4'
 
27
 
26
28
    def apply_ec2_settings(self):
27
 
        self.vm.addpkg += ['standard^',
 
29
        self.context.addpkg += ['standard^',
28
30
                          'uec^']
29
31
 
30
32
    def pre_install(self):
31
 
        self.vm.install_file('/etc/hosts', contents='')
 
33
        self.context.install_file('/etc/hosts', contents='')