~barry/ubuntu/lucid/vm-builder/firstboot

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Soren Hansen
  • Date: 2009-02-19 00:28:02 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20090219002802-3g1mo0j8slfbq6s1
Tags: 0.10-0ubuntu1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
class Ubuntu(Distro):
30
30
    name = 'Ubuntu'
31
31
    arg = 'ubuntu'
32
 
    suites = ['dapper', 'feisty', 'gutsy', 'hardy', 'intrepid', 'jaunty']
 
32
    suites = ['dapper', 'gutsy', 'hardy', 'intrepid', 'jaunty']
33
33
    
34
34
    # Maps host arch to valid guest archs
35
35
    valid_archs = { 'amd64' : ['amd64', 'i386', 'lpia' ],
51
51
        self.vm.register_setting_group(group)
52
52
 
53
53
        group = self.vm.setting_group('Installation options')
54
 
        group.add_option('--suite', default='intrepid', help='Suite to install. Valid options: %s [default: %%default]' % ' '.join(self.suites))
 
54
        group.add_option('--suite', default='jaunty', help='Suite to install. Valid options: %s [default: %%default]' % ' '.join(self.suites))
55
55
        group.add_option('--flavour', '--kernel-flavour', help='Kernel flavour to use. Default and valid options depend on architecture and suite')
56
56
        group.add_option('--iso', metavar='PATH', help='Use an iso image as the source for installation of file. Full path to the iso must be provided. If --mirror is also provided, it will be used in the final sources.list of the vm.  This requires suite and kernel parameter to match what is available on the iso, obviously.')
57
57
        group.add_option('--mirror', metavar='URL', help='Use Ubuntu mirror at URL instead of the default, which is http://archive.ubuntu.com/ubuntu for official arches and http://ports.ubuntu.com/ubuntu-ports otherwise')