blob: 68deae1441374d3eded13151b2439894479cedc1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
|
# This file is part of curtin. See LICENSE file for copyright and license info.
from curtin.util import get_platform_arch
class _ReleaseBase(object):
repo = "maas-daily"
arch = get_platform_arch()
mem = "1024"
class _UbuntuBase(_ReleaseBase):
distro = "ubuntu"
kflavor = "generic"
target_distro = "ubuntu"
class _CentosFromUbuntuBase(_UbuntuBase):
# base for installing centos tarballs from ubuntu base
target_distro = "centos"
target_ftype = "root-tgz"
kflavor = None
class _UbuntuCoreUbuntuBase(_UbuntuBase):
# base for installing UbuntuCore root-image.xz from ubuntu base
target_distro = "ubuntu-core-16"
target_ftype = "root-image.xz"
kflavor = None
class _Centos70FromXenialBase(_CentosFromUbuntuBase):
# release for boot
release = "xenial"
# release for target
target_release = "centos70"
class _Centos70FromBionicBase(_CentosFromUbuntuBase):
# release for boot
release = "bionic"
# release for target
target_release = "centos70"
class _UbuntuCore16FromXenialBase(_UbuntuCoreUbuntuBase):
# release for boot
release = "xenial"
# release for target
target_release = "ubuntu-core-16"
target_distro = "ubuntu-core"
class _Centos66FromXenialBase(_CentosFromUbuntuBase):
release = "xenial"
target_release = "centos66"
class _Centos66FromBionicBase(_CentosFromUbuntuBase):
release = "bionic"
target_release = "centos66"
class _PreciseBase(_UbuntuBase):
release = "xenial"
target_release = "precise"
target_distro = "ubuntu"
target_ftype = "squashfs"
class _PreciseHWET(_PreciseBase):
target_kernel_package = 'linux-generic-lts-trusty'
class _TrustyBase(_UbuntuBase):
release = "trusty"
target_release = "trusty"
class _TrustyHWEU(_TrustyBase):
krel = "utopic"
class _TrustyHWEV(_TrustyBase):
krel = "vivid"
class _TrustyHWEW(_TrustyBase):
krel = "wily"
class _TrustyHWEX(_TrustyBase):
krel = "xenial"
class _TrustyFromXenial(_TrustyBase):
release = "xenial"
target_release = "trusty"
class _XenialBase(_UbuntuBase):
release = "xenial"
target_release = "xenial"
subarch = "ga-16.04"
class _XenialGA(_XenialBase):
subarch = "ga-16.04"
class _XenialHWE(_XenialBase):
subarch = "hwe-16.04"
class _XenialEdge(_XenialBase):
subarch = "hwe-16.04-edge"
class _BionicBase(_UbuntuBase):
release = "bionic"
target_release = "bionic"
class _CosmicBase(_UbuntuBase):
release = "cosmic"
target_release = "cosmic"
class _DiscoBase(_UbuntuBase):
release = "disco"
target_release = "disco"
# squashfs is over 300MB, need more ram
mem = "2048"
class _EoanBase(_UbuntuBase):
release = "eoan"
target_release = "eoan"
mem = "2048"
class _Releases(object):
trusty = _TrustyBase
precise = _PreciseBase
precise_hwe_t = _PreciseHWET
trusty_hwe_u = _TrustyHWEU
trusty_hwe_v = _TrustyHWEV
trusty_hwe_w = _TrustyHWEW
trusty_hwe_x = _TrustyHWEX
trustyfromxenial = _TrustyFromXenial
xenial = _XenialBase
xenial_ga = _XenialGA
xenial_hwe = _XenialHWE
xenial_edge = _XenialEdge
bionic = _BionicBase
cosmic = _CosmicBase
disco = _DiscoBase
eoan = _EoanBase
class _CentosReleases(object):
centos70_xenial = _Centos70FromXenialBase
centos66_xenial = _Centos66FromXenialBase
centos70_bionic = _Centos70FromBionicBase
centos66_bionic = _Centos66FromBionicBase
class _UbuntuCoreReleases(object):
uc16fromxenial = _UbuntuCore16FromXenialBase
base_vm_classes = _Releases
centos_base_vm_classes = _CentosReleases
ubuntu_core_base_vm_classes = _UbuntuCoreReleases
# vi: ts=4 expandtab syntax=python
|